dan sinclair | 02d4ea0 | 2022-11-10 15:52:41 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
| 4 | ; Bound: 32 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 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 |
| 13 | OpName %value "value" |
| 14 | OpName %vertex_point_size "vertex_point_size" |
| 15 | OpName %cos_af7447 "cos_af7447" |
| 16 | OpName %res "res" |
| 17 | OpName %vertex_main_inner "vertex_main_inner" |
| 18 | OpName %vertex_main "vertex_main" |
| 19 | OpName %fragment_main "fragment_main" |
| 20 | OpName %compute_main "compute_main" |
| 21 | OpDecorate %value BuiltIn Position |
| 22 | OpDecorate %vertex_point_size BuiltIn PointSize |
| 23 | %float = OpTypeFloat 32 |
| 24 | %v4float = OpTypeVector %float 4 |
| 25 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 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 |
| 31 | %void = OpTypeVoid |
| 32 | %9 = OpTypeFunction %void |
| 33 | %v2float = OpTypeVector %float 2 |
| 34 | %float_1 = OpConstant %float 1 |
| 35 | %15 = OpConstantComposite %v2float %float_1 %float_1 |
| 36 | %_ptr_Function_v2float = OpTypePointer Function %v2float |
| 37 | %18 = OpConstantNull %v2float |
| 38 | %19 = OpTypeFunction %v4float |
| 39 | %cos_af7447 = OpFunction %void None %9 |
| 40 | %12 = OpLabel |
| 41 | %res = OpVariable %_ptr_Function_v2float Function %18 |
| 42 | OpStore %res %15 |
| 43 | OpReturn |
| 44 | OpFunctionEnd |
| 45 | %vertex_main_inner = OpFunction %v4float None %19 |
| 46 | %21 = OpLabel |
| 47 | %22 = OpFunctionCall %void %cos_af7447 |
| 48 | OpReturnValue %5 |
| 49 | OpFunctionEnd |
| 50 | %vertex_main = OpFunction %void None %9 |
| 51 | %24 = OpLabel |
| 52 | %25 = OpFunctionCall %v4float %vertex_main_inner |
| 53 | OpStore %value %25 |
| 54 | OpStore %vertex_point_size %float_1 |
| 55 | OpReturn |
| 56 | OpFunctionEnd |
| 57 | %fragment_main = OpFunction %void None %9 |
| 58 | %27 = OpLabel |
| 59 | %28 = OpFunctionCall %void %cos_af7447 |
| 60 | OpReturn |
| 61 | OpFunctionEnd |
| 62 | %compute_main = OpFunction %void None %9 |
| 63 | %30 = OpLabel |
| 64 | %31 = OpFunctionCall %void %cos_af7447 |
| 65 | OpReturn |
| 66 | OpFunctionEnd |