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: 75 |
| 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 %arg_1 "arg_1" |
| 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 %textureSampleCompareLevel_7dc3c0 "textureSampleCompareLevel_7dc3c0" |
| 21 | OpName %arg_2 "arg_2" |
| 22 | OpName %arg_3 "arg_3" |
| 23 | OpName %arg_4 "arg_4" |
| 24 | OpName %res "res" |
| 25 | OpName %fragment_main "fragment_main" |
| 26 | OpName %compute_main "compute_main" |
| 27 | OpName %vertex_main_inner "vertex_main_inner" |
| 28 | OpMemberName %VertexOutput 0 "pos" |
| 29 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 30 | OpName %VertexOutput "VertexOutput" |
| 31 | OpName %out "out" |
| 32 | OpName %vertex_main "vertex_main" |
| 33 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 34 | OpDecorate %tint_symbol_1 Block |
| 35 | OpDecorate %1 DescriptorSet 0 |
| 36 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 37 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 38 | OpDecorate %arg_0 DescriptorSet 1 |
| 39 | OpDecorate %arg_0 Binding 0 |
| 40 | OpDecorate %arg_1 DescriptorSet 1 |
| 41 | OpDecorate %arg_1 Binding 1 |
| 42 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 43 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 44 | OpDecorate %vertex_main_loc0_Output Flat |
| 45 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 46 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 47 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 48 | %float = OpTypeFloat 32 |
| 49 | %tint_symbol_1 = OpTypeStruct %float |
| 50 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 51 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 52 | %7 = OpTypeImage %float 2D 0 1 0 1 Unknown |
| 53 | %_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7 |
| 54 | %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant |
| 55 | %10 = OpTypeSampler |
| 56 | %_ptr_UniformConstant_10 = OpTypePointer UniformConstant %10 |
| 57 | %arg_1 = OpVariable %_ptr_UniformConstant_10 UniformConstant |
| 58 | %v4float = OpTypeVector %float 4 |
| 59 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 60 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 61 | %_ptr_Output_float = OpTypePointer Output %float |
| 62 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_float Output |
| 63 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 64 | %18 = OpTypeFunction %float |
| 65 | %v2float = OpTypeVector %float 2 |
| 66 | %_ptr_Function_v2float = OpTypePointer Function %v2float |
| 67 | %float_1 = OpConstant %float 1 |
| 68 | %23 = OpConstantComposite %v2float %float_1 %float_1 |
| 69 | %uint = OpTypeInt 32 0 |
| 70 | %_ptr_Function_uint = OpTypePointer Function %uint |
| 71 | %uint_1 = OpConstant %uint 1 |
| 72 | %_ptr_Function_float = OpTypePointer Function %float |
| 73 | %37 = OpTypeSampledImage %7 |
| 74 | %v3float = OpTypeVector %float 3 |
| 75 | %float_0 = OpConstant %float 0 |
| 76 | %void = OpTypeVoid |
| 77 | %47 = OpTypeFunction %void |
| 78 | %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| 79 | %uint_0 = OpConstant %uint 0 |
| 80 | %VertexOutput = OpTypeStruct %v4float %float |
| 81 | %59 = OpTypeFunction %VertexOutput |
| 82 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 83 | %63 = OpConstantNull %VertexOutput |
| 84 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 85 | %66 = OpConstantNull %v4float |
| 86 | %textureSampleCompareLevel_7dc3c0 = OpFunction %float None %18 |
| 87 | %19 = OpLabel |
| 88 | %arg_2 = OpVariable %_ptr_Function_v2float Function |
| 89 | %arg_3 = OpVariable %_ptr_Function_uint Function |
| 90 | %arg_4 = OpVariable %_ptr_Function_float Function |
| 91 | %res = OpVariable %_ptr_Function_float Function |
| 92 | OpStore %arg_2 %23 |
| 93 | OpStore %arg_3 %uint_1 |
| 94 | OpStore %arg_4 %float_1 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 95 | %31 = OpLoad %7 %arg_0 None |
| 96 | %32 = OpLoad %10 %arg_1 None |
| 97 | %33 = OpLoad %v2float %arg_2 None |
| 98 | %34 = OpLoad %uint %arg_3 None |
| 99 | %35 = OpLoad %float %arg_4 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 100 | %36 = OpSampledImage %37 %31 %32 |
| 101 | %38 = OpConvertUToF %float %34 |
| 102 | %40 = OpCompositeConstruct %v3float %33 %38 |
| 103 | %41 = OpImageSampleDrefExplicitLod %float %36 %40 %35 Lod %float_0 |
| 104 | OpStore %res %41 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 105 | %44 = OpLoad %float %res None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 106 | OpReturnValue %44 |
| 107 | OpFunctionEnd |
| 108 | %fragment_main = OpFunction %void None %47 |
| 109 | %48 = OpLabel |
| 110 | %49 = OpFunctionCall %float %textureSampleCompareLevel_7dc3c0 |
| 111 | %50 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 112 | OpStore %50 %49 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 113 | OpReturn |
| 114 | OpFunctionEnd |
| 115 | %compute_main = OpFunction %void None %47 |
| 116 | %54 = OpLabel |
| 117 | %55 = OpFunctionCall %float %textureSampleCompareLevel_7dc3c0 |
| 118 | %56 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 119 | OpStore %56 %55 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 120 | OpReturn |
| 121 | OpFunctionEnd |
| 122 | %vertex_main_inner = OpFunction %VertexOutput None %59 |
| 123 | %60 = OpLabel |
| 124 | %out = OpVariable %_ptr_Function_VertexOutput Function %63 |
| 125 | %64 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 126 | OpStore %64 %66 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 127 | %67 = OpAccessChain %_ptr_Function_float %out %uint_1 |
| 128 | %68 = OpFunctionCall %float %textureSampleCompareLevel_7dc3c0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 129 | OpStore %67 %68 None |
| 130 | %69 = OpLoad %VertexOutput %out None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 131 | OpReturnValue %69 |
| 132 | OpFunctionEnd |
| 133 | %vertex_main = OpFunction %void None %47 |
| 134 | %71 = OpLabel |
| 135 | %72 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 136 | %73 = OpCompositeExtract %v4float %72 0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 137 | OpStore %vertex_main_position_Output %73 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 138 | %74 = OpCompositeExtract %float %72 1 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 139 | OpStore %vertex_main_loc0_Output %74 None |
| 140 | OpStore %vertex_main___point_size_Output %float_1 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 141 | OpReturn |
| 142 | OpFunctionEnd |