third_party/spirv-cross/reference/shaders/asm/geom/inout-split-access-chain-handle.asm.geom
raw| 1 | #version 440 |
| 2 | layout(triangles) in; |
| 3 | layout(max_vertices = 5, triangle_strip) out; |
| 4 | |
| 5 | struct Data |
| 6 | { |
| 7 | vec4 ApiPerspectivePosition; |
| 8 | }; |
| 9 | |
| 10 | void Copy(inout Data inputStream[3]) |
| 11 | { |
| 12 | inputStream[0].ApiPerspectivePosition = gl_in[0].gl_Position; |
| 13 | } |
| 14 | |
| 15 | void main() |
| 16 | { |
| 17 | Data inputStream[3]; |
| 18 | Data param[3] = inputStream; |
| 19 | Copy(param); |
| 20 | inputStream = param; |
| 21 | gl_Position = inputStream[0].ApiPerspectivePosition; |
| 22 | } |
| 23 |