summaryrefslogtreecommitdiffstats
path: root/examples/vulkan/hellovulkancubes/color.frag
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-03-24 14:54:24 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2017-03-29 10:58:06 +0000
commitc72b821b5911842757a3929fb287471ad5d457ea (patch)
tree07aace2498733596acc411cf096fcff998485c42 /examples/vulkan/hellovulkancubes/color.frag
parente7a7931ba1e4fd6d80674c73e6e9e9a8099b9391 (diff)
Add the Vulkan cube example
Features a little bit more than a cube, though. Change-Id: I636d4875ba9ccf722ed3caab97f14570be785748 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples/vulkan/hellovulkancubes/color.frag')
-rw-r--r--examples/vulkan/hellovulkancubes/color.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/vulkan/hellovulkancubes/color.frag b/examples/vulkan/hellovulkancubes/color.frag
new file mode 100644
index 0000000000..3b04955963
--- /dev/null
+++ b/examples/vulkan/hellovulkancubes/color.frag
@@ -0,0 +1,12 @@
+#version 440
+
+layout(push_constant) uniform PC {
+ layout(offset = 64) vec3 color;
+} pc;
+
+layout(location = 0) out vec4 fragColor;
+
+void main()
+{
+ fragColor = vec4(pc.color, 1.0);
+}