third_party/spirv-cross/reference/shaders/asm/vert/empty-io.asm.vert
raw| 1 | #version 450 |
| 2 | |
| 3 | struct VSInput |
| 4 | { |
| 5 | vec4 position; |
| 6 | }; |
| 7 | |
| 8 | struct VSOutput |
| 9 | { |
| 10 | vec4 position; |
| 11 | }; |
| 12 | |
| 13 | struct VSOutput_1 |
| 14 | { |
| 15 | int empty_struct_member; |
| 16 | }; |
| 17 | |
| 18 | layout(location = 0) in vec4 position; |
| 19 | |
| 20 | VSOutput _main(VSInput _input) |
| 21 | { |
| 22 | VSOutput _out; |
| 23 | _out.position = _input.position; |
| 24 | return _out; |
| 25 | } |
| 26 | |
| 27 | void main() |
| 28 | { |
| 29 | VSInput _input; |
| 30 | _input.position = position; |
| 31 | VSInput param = _input; |
| 32 | gl_Position = _main(param).position; |
| 33 | } |
| 34 |