diff options
Diffstat (limited to 'tests/playground/cbuf.frag')
-rw-r--r-- | tests/playground/cbuf.frag | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/playground/cbuf.frag b/tests/playground/cbuf.frag new file mode 100644 index 0000000..0091443 --- /dev/null +++ b/tests/playground/cbuf.frag @@ -0,0 +1,21 @@ +#version 440 + +layout(location = 0) in vec3 vECVertNormal; +layout(location = 1) in vec3 vECVertPos; + +layout(std140, binding = 1) uniform buf { + vec3 v; + float f; +} ubuf; + +layout(std140, binding = 2) uniform buf2 { + float f; + vec3 v; +} ubuf2; + +layout(location = 0) out vec4 fragColor; + +void main() +{ + fragColor = vec4(ubuf.v, ubuf.f); +} |