summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/rhi/qrhi/data/simpletextured.frag
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-10-07 17:12:59 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-10-09 17:15:06 +0200
commitb2de7f8583a9a2e73f0de507534158354a86ce7d (patch)
tree6aca8d5c14cf8e93988ff9c9a0b4cf4c1403499c /tests/auto/gui/rhi/qrhi/data/simpletextured.frag
parent8f44da1f551a94d99b6772c8c459436e455ca8cd (diff)
rhi: Autotest rendering a textured quad
Task-number: QTBUG-78971 Change-Id: I0e7e0f3c00f9509031f7b4a8a389e51c915f01c2 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi/qrhi/data/simpletextured.frag')
-rw-r--r--tests/auto/gui/rhi/qrhi/data/simpletextured.frag13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qrhi/data/simpletextured.frag b/tests/auto/gui/rhi/qrhi/data/simpletextured.frag
new file mode 100644
index 0000000000..630df7b807
--- /dev/null
+++ b/tests/auto/gui/rhi/qrhi/data/simpletextured.frag
@@ -0,0 +1,13 @@
+#version 440
+
+layout(location = 0) in vec2 uv;
+layout(location = 0) out vec4 fragColor;
+
+layout(binding = 0) uniform sampler2D tex;
+
+void main()
+{
+ vec4 c = texture(tex, uv);
+ c.rgb *= c.a;
+ fragColor = c;
+}