James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 4 | ; Bound: 21 |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 8 | OpEntryPoint Vertex %main "main" %pos_1 %vertex_point_size |
| 9 | OpName %pos_1 "pos_1" |
| 10 | OpName %vertex_point_size "vertex_point_size" |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 11 | OpName %Out "Out" |
| 12 | OpMemberName %Out 0 "pos" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 13 | OpName %main_inner "main_inner" |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 14 | OpName %main "main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 15 | OpDecorate %pos_1 BuiltIn Position |
| 16 | OpDecorate %pos_1 Invariant |
| 17 | OpDecorate %vertex_point_size BuiltIn PointSize |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 18 | OpMemberDecorate %Out 0 Offset 0 |
| 19 | %float = OpTypeFloat 32 |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 20 | %v4float = OpTypeVector %float 4 |
| 21 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 22 | %5 = OpConstantNull %v4float |
| 23 | %pos_1 = OpVariable %_ptr_Output_v4float Output %5 |
| 24 | %_ptr_Output_float = OpTypePointer Output %float |
| 25 | %8 = OpConstantNull %float |
| 26 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 27 | %Out = OpTypeStruct %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 28 | %9 = OpTypeFunction %Out |
| 29 | %13 = OpConstantNull %Out |
| 30 | %void = OpTypeVoid |
| 31 | %14 = OpTypeFunction %void |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 32 | %float_1 = OpConstant %float 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 33 | %main_inner = OpFunction %Out None %9 |
| 34 | %12 = OpLabel |
| 35 | OpReturnValue %13 |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 36 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 37 | %main = OpFunction %void None %14 |
| 38 | %17 = OpLabel |
| 39 | %18 = OpFunctionCall %Out %main_inner |
| 40 | %19 = OpCompositeExtract %v4float %18 0 |
| 41 | OpStore %pos_1 %19 |
| 42 | OpStore %vertex_point_size %float_1 |
James Price | 88b8e2f | 2021-07-12 14:48:20 +0000 | [diff] [blame] | 43 | OpReturn |
| 44 | OpFunctionEnd |