third_party/spirv-cross/reference/shaders/asm/frag/struct-composite-extract-swizzle.asm.frag
raw| 1 | #version 310 es |
| 2 | precision mediump float; |
| 3 | precision highp int; |
| 4 | |
| 5 | struct Foo |
| 6 | { |
| 7 | float var1; |
| 8 | float var2; |
| 9 | }; |
| 10 | |
| 11 | layout(binding = 0) uniform mediump sampler2D uSampler; |
| 12 | |
| 13 | layout(location = 0) out vec4 FragColor; |
| 14 | |
| 15 | Foo _22; |
| 16 | |
| 17 | void main() |
| 18 | { |
| 19 | FragColor = texture(uSampler, vec2(_22.var1, _22.var2)); |
| 20 | } |
| 21 |