Porta tots els shaders a Vulkan i Metal

This commit is contained in:
JailDesigner committed 2026-05-04 12:35:58 +02:00
1 parent 8d42d5741f
commit ef37a7a2e6
38 files changed
+2942 -8

No files matched your search

+1 -1
View File
@@ -14,6 +14,6 @@ vertex PassthroughVOut passthrough_vs(uint vid [[vertex_id]]) {
PassthroughVOut out;
float2 pos = positions[vid];
out.uv = pos * 0.5 + 0.5;
out.pos = float4(pos.x, -pos.y, 0.0, 1.0);
out.pos = float4(pos, 0.0, 1.0);
return out;
}
Binary file not shown.
+1 -2
View File
@@ -2,7 +2,6 @@
// Shared fullscreen-triangle vertex shader for the SDL3 GPU backend.
// Emits vUV in Shadertoy convention: (0,0) bottom-left, (1,1) top-right.
// Y flipped in NDC because Vulkan/Metal point Y down by default.
layout(location = 0) out vec2 vUV;
@@ -14,5 +13,5 @@ void main() {
);
vec2 pos = positions[gl_VertexIndex];
vUV = pos * 0.5 + 0.5;
gl_Position = vec4(pos.x, -pos.y, 0.0, 1.0);
gl_Position = vec4(pos, 0.0, 1.0);
}