summaryrefslogtreecommitdiff
path: root/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag')
-rw-r--r--contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag b/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
new file mode 100644
index 0000000..05fd18c
--- /dev/null
+++ b/contrib/SDL-3.2.8/src/render/gpu/shaders/texture_rgba.frag
@@ -0,0 +1,12 @@
1#version 450
2
3layout(location = 0) in vec4 v_color;
4layout(location = 1) in vec2 v_uv;
5
6layout(set = 2, binding = 0) uniform sampler2D u_texture;
7
8layout(location = 0) out vec4 o_color;
9
10void main() {
11 o_color = texture(u_texture, v_uv) * v_color;
12}