From 3dd580b7365e196bc2ba45d91bc7f78009f341ef Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 5 May 2026 00:23:17 +0200 Subject: Remove useless files in thirdparty directoy and move to simdjson --- thirdparty/imgui/backends/sdlgpu3/shader.vert | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 thirdparty/imgui/backends/sdlgpu3/shader.vert (limited to 'thirdparty/imgui/backends/sdlgpu3/shader.vert') diff --git a/thirdparty/imgui/backends/sdlgpu3/shader.vert b/thirdparty/imgui/backends/sdlgpu3/shader.vert new file mode 100644 index 0000000..3a85a90 --- /dev/null +++ b/thirdparty/imgui/backends/sdlgpu3/shader.vert @@ -0,0 +1,24 @@ +#version 450 core +layout(location = 0) in vec2 aPos; +layout(location = 1) in vec2 aUV; +layout(location = 2) in vec4 aColor; + +layout(set=1,binding=0) uniform UBO +{ + vec2 uScale; + vec2 uTranslate; +} ubo; + +layout(location = 0) out struct +{ + vec4 Color; + vec2 UV; +} Out; + +void main() +{ + Out.Color = aColor; + Out.UV = aUV; + gl_Position = vec4(aPos * ubo.uScale + ubo.uTranslate, 0, 1); + gl_Position.y *= -1.0f; +} -- cgit v1.3