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 |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 4 | ; Bound: 34 |
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_b04721 "select_b04721" |
| 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 | %uint = OpTypeInt 32 0 |
| 34 | %v3uint = OpTypeVector %uint 3 |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 35 | %uint_1 = OpConstant %uint 1 |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 36 | %16 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 37 | %_ptr_Function_v3uint = OpTypePointer Function %v3uint |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 38 | %19 = OpConstantNull %v3uint |
| 39 | %20 = OpTypeFunction %v4float |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 40 | %float_1 = OpConstant %float 1 |
| 41 | %select_b04721 = OpFunction %void None %9 |
| 42 | %12 = OpLabel |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 43 | %res = OpVariable %_ptr_Function_v3uint Function %19 |
| 44 | OpStore %res %16 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 45 | OpReturn |
| 46 | OpFunctionEnd |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 47 | %vertex_main_inner = OpFunction %v4float None %20 |
| 48 | %22 = OpLabel |
| 49 | %23 = OpFunctionCall %void %select_b04721 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 50 | OpReturnValue %5 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 51 | OpFunctionEnd |
| 52 | %vertex_main = OpFunction %void None %9 |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 53 | %25 = OpLabel |
| 54 | %26 = OpFunctionCall %v4float %vertex_main_inner |
| 55 | OpStore %value %26 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 56 | OpStore %vertex_point_size %float_1 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 57 | OpReturn |
| 58 | OpFunctionEnd |
| 59 | %fragment_main = OpFunction %void None %9 |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 60 | %29 = OpLabel |
| 61 | %30 = OpFunctionCall %void %select_b04721 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 62 | OpReturn |
| 63 | OpFunctionEnd |
| 64 | %compute_main = OpFunction %void None %9 |
Antonio Maiorano | 8800d88 | 2022-10-05 01:39:53 +0000 | [diff] [blame] | 65 | %32 = OpLabel |
| 66 | %33 = OpFunctionCall %void %select_b04721 |
James Price | 077fe64 | 2021-06-29 08:45:34 +0000 | [diff] [blame] | 67 | OpReturn |
| 68 | OpFunctionEnd |