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: 58 |
| 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_1f2016 "textureLoad_1f2016" |
| 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 %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 | %v4float = OpTypeVector %float 4 |
| 43 | %tint_symbol_1 = OpTypeStruct %v4float |
| 44 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 45 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 46 | %8 = OpTypeImage %float 3D 0 0 0 1 Unknown |
| 47 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 48 | %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 49 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 50 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 51 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_v4float Output |
| 52 | %_ptr_Output_float = OpTypePointer Output %float |
| 53 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 54 | %15 = OpTypeFunction %v4float |
| 55 | %int = OpTypeInt 32 1 |
| 56 | %v3int = OpTypeVector %int 3 |
| 57 | %int_1 = OpConstant %int 1 |
| 58 | %19 = OpConstantComposite %v3int %int_1 %int_1 %int_1 |
| 59 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 60 | %void = OpTypeVoid |
| 61 | %28 = OpTypeFunction %void |
| 62 | %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| 63 | %uint = OpTypeInt 32 0 |
| 64 | %uint_0 = OpConstant %uint 0 |
| 65 | %VertexOutput = OpTypeStruct %v4float %v4float |
| 66 | %41 = OpTypeFunction %VertexOutput |
| 67 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 68 | %45 = OpConstantNull %VertexOutput |
| 69 | %47 = OpConstantNull %v4float |
| 70 | %uint_1 = OpConstant %uint 1 |
| 71 | %float_1 = OpConstant %float 1 |
| 72 | %textureLoad_1f2016 = OpFunction %v4float None %15 |
| 73 | %16 = OpLabel |
| 74 | %res = OpVariable %_ptr_Function_v4float Function |
| 75 | %17 = OpLoad %8 %arg_0 |
| 76 | %18 = OpImageFetch %v4float %17 %19 Lod %int_1 |
| 77 | OpStore %res %18 |
| 78 | %25 = OpLoad %v4float %res |
| 79 | OpReturnValue %25 |
| 80 | OpFunctionEnd |
| 81 | %fragment_main = OpFunction %void None %28 |
| 82 | %29 = OpLabel |
| 83 | %30 = OpFunctionCall %v4float %textureLoad_1f2016 |
| 84 | %31 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 |
| 85 | OpStore %31 %30 |
| 86 | OpReturn |
| 87 | OpFunctionEnd |
| 88 | %compute_main = OpFunction %void None %28 |
| 89 | %36 = OpLabel |
| 90 | %37 = OpFunctionCall %v4float %textureLoad_1f2016 |
| 91 | %38 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 |
| 92 | OpStore %38 %37 |
| 93 | OpReturn |
| 94 | OpFunctionEnd |
| 95 | %vertex_main_inner = OpFunction %VertexOutput None %41 |
| 96 | %42 = OpLabel |
| 97 | %out = OpVariable %_ptr_Function_VertexOutput Function %45 |
| 98 | %46 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 99 | OpStore %46 %47 |
| 100 | %48 = OpAccessChain %_ptr_Function_v4float %out %uint_1 |
| 101 | %50 = OpFunctionCall %v4float %textureLoad_1f2016 |
| 102 | OpStore %48 %50 |
| 103 | %51 = OpLoad %VertexOutput %out |
| 104 | OpReturnValue %51 |
| 105 | OpFunctionEnd |
| 106 | %vertex_main = OpFunction %void None %28 |
| 107 | %53 = OpLabel |
| 108 | %54 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 109 | %55 = OpCompositeExtract %v4float %54 0 |
| 110 | OpStore %vertex_main_position_Output %55 |
| 111 | %56 = OpCompositeExtract %v4float %54 1 |
| 112 | OpStore %vertex_main_loc0_Output %56 |
| 113 | OpStore %vertex_main___point_size_Output %float_1 |
| 114 | OpReturn |
| 115 | OpFunctionEnd |