third_party/spirv-cross/reference/shaders-hlsl/vert/matrix-output.vert
raw| 1 | static float4 gl_Position; |
| 2 | static float4x4 m; |
| 3 | |
| 4 | struct SPIRV_Cross_Output |
| 5 | { |
| 6 | float4x4 m : TEXCOORD0; |
| 7 | float4 gl_Position : SV_Position; |
| 8 | }; |
| 9 | |
| 10 | void vert_main() |
| 11 | { |
| 12 | gl_Position = 1.0f.xxxx; |
| 13 | m = float4x4(float4(1.0f, 0.0f, 0.0f, 0.0f), float4(0.0f, 1.0f, 0.0f, 0.0f), float4(0.0f, 0.0f, 1.0f, 0.0f), float4(0.0f, 0.0f, 0.0f, 1.0f)); |
| 14 | } |
| 15 | |
| 16 | SPIRV_Cross_Output main() |
| 17 | { |
| 18 | vert_main(); |
| 19 | SPIRV_Cross_Output stage_output; |
| 20 | stage_output.gl_Position = gl_Position; |
| 21 | stage_output.m = m; |
| 22 | return stage_output; |
| 23 | } |