diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/hlsl.switch.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/hlsl.switch.frag | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.switch.frag b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.switch.frag new file mode 100644 index 00000000000..88239c2bec9 --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/hlsl.switch.frag @@ -0,0 +1,55 @@ +float4 PixelShaderFunction(float4 input, int c, int d) : COLOR0 +{ + switch(c) + { + } + + switch(c) + { + default: + } + + switch (c) { + case 1: + ++input; + break; + case 2: + --input; + break; + } + + switch (c) { + case 1: + ++input; + break; + case 2: + switch (d) { + case 2: + input += 2.0; + break; + case 3: + input += 3.0; + break; + } + break; + default: + input += 4.0; + } + + switch (c) { + case 1: + } + + switch (c) { + case 1: + case 2: + case 3: + ++input; + break; + case 4: + case 5: + --input; + } + + return input; +} |