diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.specConstArrayCheck.vert')
-rwxr-xr-x | 3rdparty/bgfx/3rdparty/glslang/Test/spv.specConstArrayCheck.vert | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.specConstArrayCheck.vert b/3rdparty/bgfx/3rdparty/glslang/Test/spv.specConstArrayCheck.vert new file mode 100755 index 00000000000..03093888a8b --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.specConstArrayCheck.vert @@ -0,0 +1,14 @@ +#version 450 + +layout(constant_id = 0) const uint a = 1; +layout(constant_id = 1) const uint b = 2; +layout(location = 0) out uint o; + +void main() { + uint arr1[a+a]; + uint arr2[b]; + o = arr1[1]; + o = arr2[1]; + o = arr1[6]; + o = arr2[6]; +} |