diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-03-24 14:54:24 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-03-29 10:58:06 +0000 |
commit | c72b821b5911842757a3929fb287471ad5d457ea (patch) | |
tree | 07aace2498733596acc411cf096fcff998485c42 /examples/vulkan/hellovulkancubes/color.vert | |
parent | e7a7931ba1e4fd6d80674c73e6e9e9a8099b9391 (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.vert')
-rw-r--r-- | examples/vulkan/hellovulkancubes/color.vert | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/vulkan/hellovulkancubes/color.vert b/examples/vulkan/hellovulkancubes/color.vert new file mode 100644 index 0000000000..19bf815819 --- /dev/null +++ b/examples/vulkan/hellovulkancubes/color.vert @@ -0,0 +1,14 @@ +#version 440 + +layout(location = 0) in vec4 position; + +out gl_PerVertex { vec4 gl_Position; }; + +layout(push_constant) uniform PC { + mat4 mvp; +} pc; + +void main() +{ + gl_Position = pc.mvp * position; +} |