diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.doLoop.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/hlsl.doLoop.frag | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.doLoop.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.doLoop.frag index 251a8c12063..0318dc8f39e 100644 --- a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.doLoop.frag +++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.doLoop.frag @@ -1,6 +1,9 @@ -float4 PixelShaderFunction(float4 input) : COLOR0 +float4 PixelShaderFunction(float input) : COLOR0 { [unroll] do {} while (false); [unroll] do {;} while (false); - do { return input; } while (all(input == input)); + do { return (float4)input; } while (input > 2.0); + do ++input; while (input < 10.0); + do while (++input < 10.0); while (++input < 10.0); // nest while inside do-while + return (float4)input; } |