diff options
Diffstat (limited to 'examples/vulkan/hellovulkancubes/color.frag')
-rw-r--r-- | examples/vulkan/hellovulkancubes/color.frag | 12 |
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); +} |