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