dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 56 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | %21 = OpExtInstImport "GLSL.std.450" |
| 8 | OpMemoryModel Logical GLSL450 |
| 9 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 10 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 11 | OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output |
| 12 | OpExecutionMode %fragment_main OriginUpperLeft |
| 13 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 14 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 15 | OpName %tint_symbol_1 "tint_symbol_1" |
| 16 | OpName %vertex_main_position_Output "vertex_main_position_Output" |
| 17 | OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| 18 | OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| 19 | OpName %max_44a39d "max_44a39d" |
| 20 | OpName %arg_0 "arg_0" |
| 21 | OpName %arg_1 "arg_1" |
| 22 | OpName %res "res" |
| 23 | OpName %fragment_main "fragment_main" |
| 24 | OpName %compute_main "compute_main" |
| 25 | OpName %vertex_main_inner "vertex_main_inner" |
| 26 | OpMemberName %VertexOutput 0 "pos" |
| 27 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 28 | OpName %VertexOutput "VertexOutput" |
| 29 | OpName %out "out" |
| 30 | OpName %vertex_main "vertex_main" |
| 31 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 32 | OpDecorate %tint_symbol_1 Block |
| 33 | OpDecorate %1 DescriptorSet 0 |
| 34 | OpDecorate %1 Binding 0 |
| 35 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 36 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 37 | OpDecorate %vertex_main_loc0_Output Flat |
| 38 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 39 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 40 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 41 | %float = OpTypeFloat 32 |
| 42 | %tint_symbol_1 = OpTypeStruct %float |
| 43 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 44 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 45 | %v4float = OpTypeVector %float 4 |
| 46 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 47 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 48 | %_ptr_Output_float = OpTypePointer Output %float |
| 49 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_float Output |
| 50 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 51 | %12 = OpTypeFunction %float |
| 52 | %_ptr_Function_float = OpTypePointer Function %float |
| 53 | %float_1 = OpConstant %float 1 |
| 54 | %void = OpTypeVoid |
| 55 | %26 = OpTypeFunction %void |
| 56 | %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| 57 | %uint = OpTypeInt 32 0 |
| 58 | %uint_0 = OpConstant %uint 0 |
| 59 | %VertexOutput = OpTypeStruct %v4float %float |
| 60 | %39 = OpTypeFunction %VertexOutput |
| 61 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 62 | %43 = OpConstantNull %VertexOutput |
| 63 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 64 | %46 = OpConstantNull %v4float |
| 65 | %uint_1 = OpConstant %uint 1 |
| 66 | %max_44a39d = OpFunction %float None %12 |
| 67 | %13 = OpLabel |
| 68 | %arg_0 = OpVariable %_ptr_Function_float Function |
| 69 | %arg_1 = OpVariable %_ptr_Function_float Function |
| 70 | %res = OpVariable %_ptr_Function_float Function |
| 71 | OpStore %arg_0 %float_1 |
| 72 | OpStore %arg_1 %float_1 |
| 73 | %18 = OpLoad %float %arg_0 |
| 74 | %19 = OpLoad %float %arg_1 |
| 75 | %20 = OpExtInst %float %21 FMax %18 %19 |
| 76 | OpStore %res %20 |
| 77 | %23 = OpLoad %float %res |
| 78 | OpReturnValue %23 |
| 79 | OpFunctionEnd |
| 80 | %fragment_main = OpFunction %void None %26 |
| 81 | %27 = OpLabel |
| 82 | %28 = OpFunctionCall %float %max_44a39d |
| 83 | %29 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
| 84 | OpStore %29 %28 |
| 85 | OpReturn |
| 86 | OpFunctionEnd |
| 87 | %compute_main = OpFunction %void None %26 |
| 88 | %34 = OpLabel |
| 89 | %35 = OpFunctionCall %float %max_44a39d |
| 90 | %36 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
| 91 | OpStore %36 %35 |
| 92 | OpReturn |
| 93 | OpFunctionEnd |
| 94 | %vertex_main_inner = OpFunction %VertexOutput None %39 |
| 95 | %40 = OpLabel |
| 96 | %out = OpVariable %_ptr_Function_VertexOutput Function %43 |
| 97 | %44 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 98 | OpStore %44 %46 |
| 99 | %47 = OpAccessChain %_ptr_Function_float %out %uint_1 |
| 100 | %49 = OpFunctionCall %float %max_44a39d |
| 101 | OpStore %47 %49 |
| 102 | %50 = OpLoad %VertexOutput %out |
| 103 | OpReturnValue %50 |
| 104 | OpFunctionEnd |
| 105 | %vertex_main = OpFunction %void None %26 |
| 106 | %52 = OpLabel |
| 107 | %53 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 108 | %54 = OpCompositeExtract %v4float %53 0 |
| 109 | OpStore %vertex_main_position_Output %54 |
| 110 | %55 = OpCompositeExtract %float %53 1 |
| 111 | OpStore %vertex_main_loc0_Output %55 |
| 112 | OpStore %vertex_main___point_size_Output %float_1 |
| 113 | OpReturn |
| 114 | OpFunctionEnd |