James Price | 077fe64 | 2021-06-29 08:45:34 +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: 39 |
James Price | 077fe64 | 2021-06-29 08:45:34 +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 %vertex_main "vertex_main" %value %vertex_point_size |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 10 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 11 | OpExecutionMode %fragment_main OriginUpperLeft |
| 12 | OpExecutionMode %compute_main LocalSize 1 1 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 13 | OpName %value "value" |
| 14 | OpName %vertex_point_size "vertex_point_size" |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 15 | OpName %select_78be5f "select_78be5f" |
| 16 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 17 | OpName %vertex_main_inner "vertex_main_inner" |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 18 | OpName %vertex_main "vertex_main" |
| 19 | OpName %fragment_main "fragment_main" |
| 20 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 21 | OpDecorate %value BuiltIn Position |
| 22 | OpDecorate %vertex_point_size BuiltIn PointSize |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 23 | %float = OpTypeFloat 32 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 24 | %v4float = OpTypeVector %float 4 |
| 25 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 26 | %5 = OpConstantNull %v4float |
| 27 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 28 | %_ptr_Output_float = OpTypePointer Output %float |
| 29 | %8 = OpConstantNull %float |
| 30 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 31 | %void = OpTypeVoid |
| 32 | %9 = OpTypeFunction %void |
| 33 | %v3float = OpTypeVector %float 3 |
| 34 | %bool = OpTypeBool |
| 35 | %16 = OpConstantNull %bool |
| 36 | %17 = OpConstantNull %v3float |
| 37 | %v3bool = OpTypeVector %bool 3 |
| 38 | %_ptr_Function_v3bool = OpTypePointer Function %v3bool |
| 39 | %21 = OpConstantNull %v3bool |
| 40 | %_ptr_Function_v3float = OpTypePointer Function %v3float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 41 | %25 = OpTypeFunction %v4float |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 42 | %float_1 = OpConstant %float 1 |
| 43 | %select_78be5f = OpFunction %void None %9 |
| 44 | %12 = OpLabel |
| 45 | %19 = OpVariable %_ptr_Function_v3bool Function %21 |
| 46 | %res = OpVariable %_ptr_Function_v3float Function %17 |
| 47 | %22 = OpCompositeConstruct %v3bool %16 %16 %16 |
| 48 | %13 = OpSelect %v3float %22 %17 %17 |
| 49 | OpStore %res %13 |
| 50 | OpReturn |
| 51 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 52 | %vertex_main_inner = OpFunction %v4float None %25 |
| 53 | %27 = OpLabel |
| 54 | %28 = OpFunctionCall %void %select_78be5f |
| 55 | OpReturnValue %5 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 56 | OpFunctionEnd |
| 57 | %vertex_main = OpFunction %void None %9 |
| 58 | %30 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 59 | %31 = OpFunctionCall %v4float %vertex_main_inner |
| 60 | OpStore %value %31 |
| 61 | OpStore %vertex_point_size %float_1 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 62 | OpReturn |
| 63 | OpFunctionEnd |
| 64 | %fragment_main = OpFunction %void None %9 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 65 | %34 = OpLabel |
| 66 | %35 = OpFunctionCall %void %select_78be5f |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 67 | OpReturn |
| 68 | OpFunctionEnd |
| 69 | %compute_main = OpFunction %void None %9 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 70 | %37 = OpLabel |
| 71 | %38 = OpFunctionCall %void %select_78be5f |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 72 | OpReturn |
| 73 | OpFunctionEnd |