diff options
Diffstat (limited to 'tests/playground/color_pc.frag')
-rw-r--r-- | tests/playground/color_pc.frag | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/playground/color_pc.frag b/tests/playground/color_pc.frag new file mode 100644 index 0000000..3b04955 --- /dev/null +++ b/tests/playground/color_pc.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); +} |