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: 60 |
| 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 %arg_0 "arg_0" |
| 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 %textureLoad_5e8d3f "textureLoad_5e8d3f" |
| 20 | OpName %res "res" |
| 21 | OpName %fragment_main "fragment_main" |
| 22 | OpName %compute_main "compute_main" |
| 23 | OpName %vertex_main_inner "vertex_main_inner" |
| 24 | OpMemberName %VertexOutput 0 "pos" |
| 25 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 26 | OpName %VertexOutput "VertexOutput" |
| 27 | OpName %out "out" |
| 28 | OpName %vertex_main "vertex_main" |
| 29 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 30 | OpDecorate %tint_symbol_1 Block |
| 31 | OpDecorate %1 DescriptorSet 0 |
| 32 | OpDecorate %1 Binding 0 |
| 33 | OpDecorate %arg_0 DescriptorSet 1 |
| 34 | OpDecorate %arg_0 Binding 0 |
| 35 | OpDecorate %arg_0 NonWritable |
| 36 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 37 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 38 | OpDecorate %vertex_main_loc0_Output Flat |
| 39 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 40 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 41 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 42 | %int = OpTypeInt 32 1 |
| 43 | %v4int = OpTypeVector %int 4 |
| 44 | %tint_symbol_1 = OpTypeStruct %v4int |
| 45 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 46 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 47 | %8 = OpTypeImage %int 3D 0 0 0 2 R32i |
| 48 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 49 | %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 50 | %float = OpTypeFloat 32 |
| 51 | %v4float = OpTypeVector %float 4 |
| 52 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 53 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 54 | %_ptr_Output_v4int = OpTypePointer Output %v4int |
| 55 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_v4int Output |
| 56 | %_ptr_Output_float = OpTypePointer Output %float |
| 57 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 58 | %18 = OpTypeFunction %v4int |
| 59 | %uint = OpTypeInt 32 0 |
| 60 | %v3uint = OpTypeVector %uint 3 |
| 61 | %uint_1 = OpConstant %uint 1 |
| 62 | %22 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1 |
| 63 | %_ptr_Function_v4int = OpTypePointer Function %v4int |
| 64 | %void = OpTypeVoid |
| 65 | %31 = OpTypeFunction %void |
| 66 | %_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int |
| 67 | %uint_0 = OpConstant %uint 0 |
| 68 | %VertexOutput = OpTypeStruct %v4float %v4int |
| 69 | %43 = OpTypeFunction %VertexOutput |
| 70 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 71 | %47 = OpConstantNull %VertexOutput |
| 72 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 73 | %50 = OpConstantNull %v4float |
| 74 | %float_1 = OpConstant %float 1 |
| 75 | %textureLoad_5e8d3f = OpFunction %v4int None %18 |
| 76 | %19 = OpLabel |
| 77 | %res = OpVariable %_ptr_Function_v4int Function |
| 78 | %20 = OpLoad %8 %arg_0 |
| 79 | %21 = OpImageRead %v4int %20 %22 None |
| 80 | OpStore %res %21 |
| 81 | %28 = OpLoad %v4int %res |
| 82 | OpReturnValue %28 |
| 83 | OpFunctionEnd |
| 84 | %fragment_main = OpFunction %void None %31 |
| 85 | %32 = OpLabel |
| 86 | %33 = OpFunctionCall %v4int %textureLoad_5e8d3f |
| 87 | %34 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0 |
| 88 | OpStore %34 %33 |
| 89 | OpReturn |
| 90 | OpFunctionEnd |
| 91 | %compute_main = OpFunction %void None %31 |
| 92 | %38 = OpLabel |
| 93 | %39 = OpFunctionCall %v4int %textureLoad_5e8d3f |
| 94 | %40 = OpAccessChain %_ptr_StorageBuffer_v4int %1 %uint_0 |
| 95 | OpStore %40 %39 |
| 96 | OpReturn |
| 97 | OpFunctionEnd |
| 98 | %vertex_main_inner = OpFunction %VertexOutput None %43 |
| 99 | %44 = OpLabel |
| 100 | %out = OpVariable %_ptr_Function_VertexOutput Function %47 |
| 101 | %48 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 102 | OpStore %48 %50 |
| 103 | %51 = OpAccessChain %_ptr_Function_v4int %out %uint_1 |
| 104 | %52 = OpFunctionCall %v4int %textureLoad_5e8d3f |
| 105 | OpStore %51 %52 |
| 106 | %53 = OpLoad %VertexOutput %out |
| 107 | OpReturnValue %53 |
| 108 | OpFunctionEnd |
| 109 | %vertex_main = OpFunction %void None %31 |
| 110 | %55 = OpLabel |
| 111 | %56 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 112 | %57 = OpCompositeExtract %v4float %56 0 |
| 113 | OpStore %vertex_main_position_Output %57 |
| 114 | %58 = OpCompositeExtract %v4int %56 1 |
| 115 | OpStore %vertex_main_loc0_Output %58 |
| 116 | OpStore %vertex_main___point_size_Output %float_1 |
| 117 | OpReturn |
| 118 | OpFunctionEnd |