diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.controlFlowAttributes.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/spv.controlFlowAttributes.frag | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.controlFlowAttributes.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.controlFlowAttributes.frag index 6d90c0db2c1..cedd60225c5 100644 --- a/3rdparty/bgfx/3rdparty/glslang/Test/spv.controlFlowAttributes.frag +++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.controlFlowAttributes.frag @@ -4,11 +4,18 @@ bool cond; +void f0() { + [[loop]] for (;;) { } +} + +void f1() { + [[dont_unroll]] while(true) { } +} + void main() { [[unroll]] for (int i = 0; i < 8; ++i) { } - [[loop]] for (;;) { } - [[dont_unroll]] while(true) { } + f0(); [[dependency_infinite]] do { } while(true); [[dependency_length(1+3)]] for (int i = 0; i < 8; ++i) { } [[flatten]] if (cond) { } else { } |