diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2026-05-05 00:23:17 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2026-05-05 00:23:17 +0200 |
| commit | 3dd580b7365e196bc2ba45d91bc7f78009f341ef (patch) | |
| tree | a991499eeed6564c42d0d5f71acf1f2109c256ab /thirdparty/imgui/backends/vulkan/glsl_shader.vert | |
| parent | 1a92f70f699389219dbda42d175e7898cdbe7783 (diff) | |
Remove useless files in thirdparty directoy and move to simdjson
Diffstat (limited to 'thirdparty/imgui/backends/vulkan/glsl_shader.vert')
| -rw-r--r-- | thirdparty/imgui/backends/vulkan/glsl_shader.vert | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/thirdparty/imgui/backends/vulkan/glsl_shader.vert b/thirdparty/imgui/backends/vulkan/glsl_shader.vert new file mode 100644 index 0000000..9425365 --- /dev/null +++ b/thirdparty/imgui/backends/vulkan/glsl_shader.vert @@ -0,0 +1,25 @@ +#version 450 core +layout(location = 0) in vec2 aPos; +layout(location = 1) in vec2 aUV; +layout(location = 2) in vec4 aColor; + +layout(push_constant) uniform uPushConstant { + vec2 uScale; + vec2 uTranslate; +} pc; + +out gl_PerVertex { + vec4 gl_Position; +}; + +layout(location = 0) out struct { + vec4 Color; + vec2 UV; +} Out; + +void main() +{ + Out.Color = aColor; + Out.UV = aUV; + gl_Position = vec4(aPos * pc.uScale + pc.uTranslate, 0, 1); +} |
