third_party/spirv-cross/reference/opt/shaders/frag/helper-invocation.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | layout(binding = 0) uniform mediump sampler2D uSampler; |
| 6 | |
| 7 | layout(location = 0) in vec2 vUV; |
| 8 | layout(location = 0) out vec4 FragColor; |
| 9 | |
| 10 | void main() |
| 11 | { |
| 12 | vec4 _52; |
| 13 | if (!gl_HelperInvocation) |
| 14 | { |
| 15 | _52 = textureLod(uSampler, vUV, 0.0); |
| 16 | } |
| 17 | else |
| 18 | { |
| 19 | _52 = vec4(1.0); |
| 20 | } |
| 21 | FragColor = _52; |
| 22 | } |
| 23 |