summaryrefslogtreecommitdiffstats
path: root/examples/vulkan/hellovulkantexture/texture.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vulkan/hellovulkantexture/texture.frag')
-rw-r--r--examples/vulkan/hellovulkantexture/texture.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/vulkan/hellovulkantexture/texture.frag b/examples/vulkan/hellovulkantexture/texture.frag
new file mode 100644
index 0000000000..e6021fe905
--- /dev/null
+++ b/examples/vulkan/hellovulkantexture/texture.frag
@@ -0,0 +1,12 @@
+#version 440
+
+layout(location = 0) in vec2 v_texcoord;
+
+layout(location = 0) out vec4 fragColor;
+
+layout(binding = 1) uniform sampler2D tex;
+
+void main()
+{
+ fragColor = texture(tex, v_texcoord);
+}