Backends: SDLGPU3: Added sdl_gpu backend. (#8163, #7998, #7988)

+Squashed: Optimized shader source code encoding by ocornut (#8163, #7998, #7988)
(squashed to avoid storing both in git history, 130 KB->62 KB)
This commit is contained in:
Delta
2025-01-09 16:55:03 +01:00
committed by ocornut
parent 940d9540f3
commit 8bbccf7a97
12 changed files with 1676 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#version 450 core
layout(location = 0) out vec4 fColor;
layout(set=2, binding=0) uniform sampler2D sTexture;
layout(location = 0) in struct {
vec4 Color;
vec2 UV;
} In;
void main()
{
fColor = In.Color * texture(sTexture, In.UV.st);
}