third_party/spirv-cross/reference/opt/shaders/frag/switch-unsigned-case.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | layout(binding = 0, std140) uniform Buff |
| 6 | { |
| 7 | mediump uint TestVal; |
| 8 | } _15; |
| 9 | |
| 10 | layout(location = 0) out vec4 fsout_Color; |
| 11 | |
| 12 | void main() |
| 13 | { |
| 14 | fsout_Color = vec4(1.0); |
| 15 | switch (_15.TestVal) |
| 16 | { |
| 17 | case 0u: |
| 18 | { |
| 19 | fsout_Color = vec4(0.100000001490116119384765625); |
| 20 | break; |
| 21 | } |
| 22 | case 1u: |
| 23 | { |
| 24 | fsout_Color = vec4(0.20000000298023223876953125); |
| 25 | break; |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 |