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: 50 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 9 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 10 | OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output |
| 11 | OpExecutionMode %fragment_main OriginUpperLeft |
| 12 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 13 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 14 | OpName %tint_symbol_1 "tint_symbol_1" |
| 15 | OpName %vertex_main_position_Output "vertex_main_position_Output" |
| 16 | OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| 17 | OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| 18 | OpName %pow_46e029 "pow_46e029" |
| 19 | OpName %res "res" |
| 20 | OpName %fragment_main "fragment_main" |
| 21 | OpName %compute_main "compute_main" |
| 22 | OpName %vertex_main_inner "vertex_main_inner" |
| 23 | OpMemberName %VertexOutput 0 "pos" |
| 24 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 25 | OpName %VertexOutput "VertexOutput" |
| 26 | OpName %out "out" |
| 27 | OpName %vertex_main "vertex_main" |
| 28 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 29 | OpDecorate %tint_symbol_1 Block |
| 30 | OpDecorate %1 DescriptorSet 0 |
| 31 | OpDecorate %1 Binding 0 |
| 32 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 33 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 34 | OpDecorate %vertex_main_loc0_Output Flat |
| 35 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 36 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 37 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 38 | %float = OpTypeFloat 32 |
| 39 | %tint_symbol_1 = OpTypeStruct %float |
| 40 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 41 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 42 | %v4float = OpTypeVector %float 4 |
| 43 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 44 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 45 | %_ptr_Output_float = OpTypePointer Output %float |
| 46 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_float Output |
| 47 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 48 | %12 = OpTypeFunction %float |
| 49 | %_ptr_Function_float = OpTypePointer Function %float |
| 50 | %float_1 = OpConstant %float 1 |
| 51 | %void = OpTypeVoid |
| 52 | %20 = OpTypeFunction %void |
| 53 | %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| 54 | %uint = OpTypeInt 32 0 |
| 55 | %uint_0 = OpConstant %uint 0 |
| 56 | %VertexOutput = OpTypeStruct %v4float %float |
| 57 | %33 = OpTypeFunction %VertexOutput |
| 58 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 59 | %37 = OpConstantNull %VertexOutput |
| 60 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 61 | %40 = OpConstantNull %v4float |
| 62 | %uint_1 = OpConstant %uint 1 |
| 63 | %pow_46e029 = OpFunction %float None %12 |
| 64 | %13 = OpLabel |
| 65 | %res = OpVariable %_ptr_Function_float Function |
| 66 | OpStore %res %float_1 |
| 67 | %17 = OpLoad %float %res |
| 68 | OpReturnValue %17 |
| 69 | OpFunctionEnd |
| 70 | %fragment_main = OpFunction %void None %20 |
| 71 | %21 = OpLabel |
| 72 | %22 = OpFunctionCall %float %pow_46e029 |
| 73 | %23 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
| 74 | OpStore %23 %22 |
| 75 | OpReturn |
| 76 | OpFunctionEnd |
| 77 | %compute_main = OpFunction %void None %20 |
| 78 | %28 = OpLabel |
| 79 | %29 = OpFunctionCall %float %pow_46e029 |
| 80 | %30 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
| 81 | OpStore %30 %29 |
| 82 | OpReturn |
| 83 | OpFunctionEnd |
| 84 | %vertex_main_inner = OpFunction %VertexOutput None %33 |
| 85 | %34 = OpLabel |
| 86 | %out = OpVariable %_ptr_Function_VertexOutput Function %37 |
| 87 | %38 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 88 | OpStore %38 %40 |
| 89 | %41 = OpAccessChain %_ptr_Function_float %out %uint_1 |
| 90 | %43 = OpFunctionCall %float %pow_46e029 |
| 91 | OpStore %41 %43 |
| 92 | %44 = OpLoad %VertexOutput %out |
| 93 | OpReturnValue %44 |
| 94 | OpFunctionEnd |
| 95 | %vertex_main = OpFunction %void None %20 |
| 96 | %46 = OpLabel |
| 97 | %47 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 98 | %48 = OpCompositeExtract %v4float %47 0 |
| 99 | OpStore %vertex_main_position_Output %48 |
| 100 | %49 = OpCompositeExtract %float %47 1 |
| 101 | OpStore %vertex_main_loc0_Output %49 |
| 102 | OpStore %vertex_main___point_size_Output %float_1 |
| 103 | OpReturn |
| 104 | OpFunctionEnd |