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: 104 |
| 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_plane0 "arg_0_plane0" |
| 16 | OpName %arg_0_plane1 "arg_0_plane1" |
| 17 | OpMemberName %tint_ExternalTextureParams_std140 0 "numPlanes" |
| 18 | OpMemberName %tint_ExternalTextureParams_std140 1 "doYuvToRgbConversionOnly" |
| 19 | OpMemberName %tint_ExternalTextureParams_std140 2 "yuvToRgbConversionMatrix" |
| 20 | OpMemberName %tint_GammaTransferParams 0 "G" |
| 21 | OpMemberName %tint_GammaTransferParams 1 "A" |
| 22 | OpMemberName %tint_GammaTransferParams 2 "B" |
| 23 | OpMemberName %tint_GammaTransferParams 3 "C" |
| 24 | OpMemberName %tint_GammaTransferParams 4 "D" |
| 25 | OpMemberName %tint_GammaTransferParams 5 "E" |
| 26 | OpMemberName %tint_GammaTransferParams 6 "F" |
| 27 | OpMemberName %tint_GammaTransferParams 7 "padding" |
| 28 | OpName %tint_GammaTransferParams "tint_GammaTransferParams" |
| 29 | OpMemberName %tint_ExternalTextureParams_std140 3 "gammaDecodeParams" |
| 30 | OpMemberName %tint_ExternalTextureParams_std140 4 "gammaEncodeParams" |
| 31 | OpMemberName %tint_ExternalTextureParams_std140 5 "gamutConversionMatrix_col0" |
| 32 | OpMemberName %tint_ExternalTextureParams_std140 6 "gamutConversionMatrix_col1" |
| 33 | OpMemberName %tint_ExternalTextureParams_std140 7 "gamutConversionMatrix_col2" |
| 34 | OpMemberName %tint_ExternalTextureParams_std140 8 "sampleTransform_col0" |
| 35 | OpMemberName %tint_ExternalTextureParams_std140 9 "sampleTransform_col1" |
| 36 | OpMemberName %tint_ExternalTextureParams_std140 10 "sampleTransform_col2" |
| 37 | OpMemberName %tint_ExternalTextureParams_std140 11 "loadTransform_col0" |
| 38 | OpMemberName %tint_ExternalTextureParams_std140 12 "loadTransform_col1" |
| 39 | OpMemberName %tint_ExternalTextureParams_std140 13 "loadTransform_col2" |
| 40 | OpMemberName %tint_ExternalTextureParams_std140 14 "samplePlane0RectMin" |
| 41 | OpMemberName %tint_ExternalTextureParams_std140 15 "samplePlane0RectMax" |
| 42 | OpMemberName %tint_ExternalTextureParams_std140 16 "samplePlane1RectMin" |
| 43 | OpMemberName %tint_ExternalTextureParams_std140 17 "samplePlane1RectMax" |
| 44 | OpMemberName %tint_ExternalTextureParams_std140 18 "visibleSize" |
| 45 | OpMemberName %tint_ExternalTextureParams_std140 19 "plane1CoordFactor" |
| 46 | OpName %tint_ExternalTextureParams_std140 "tint_ExternalTextureParams_std140" |
| 47 | OpMemberName %tint_symbol_3_std140 0 "tint_symbol_2" |
| 48 | OpName %tint_symbol_3_std140 "tint_symbol_3_std140" |
| 49 | OpName %vertex_main_position_Output "vertex_main_position_Output" |
| 50 | OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| 51 | OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| 52 | OpName %textureDimensions_cdc6c9 "textureDimensions_cdc6c9" |
| 53 | OpMemberName %tint_ExternalTextureParams 0 "numPlanes" |
| 54 | OpMemberName %tint_ExternalTextureParams 1 "doYuvToRgbConversionOnly" |
| 55 | OpMemberName %tint_ExternalTextureParams 2 "yuvToRgbConversionMatrix" |
| 56 | OpMemberName %tint_ExternalTextureParams 3 "gammaDecodeParams" |
| 57 | OpMemberName %tint_ExternalTextureParams 4 "gammaEncodeParams" |
| 58 | OpMemberName %tint_ExternalTextureParams 5 "gamutConversionMatrix" |
| 59 | OpMemberName %tint_ExternalTextureParams 6 "sampleTransform" |
| 60 | OpMemberName %tint_ExternalTextureParams 7 "loadTransform" |
| 61 | OpMemberName %tint_ExternalTextureParams 8 "samplePlane0RectMin" |
| 62 | OpMemberName %tint_ExternalTextureParams 9 "samplePlane0RectMax" |
| 63 | OpMemberName %tint_ExternalTextureParams 10 "samplePlane1RectMin" |
| 64 | OpMemberName %tint_ExternalTextureParams 11 "samplePlane1RectMax" |
| 65 | OpMemberName %tint_ExternalTextureParams 12 "visibleSize" |
| 66 | OpMemberName %tint_ExternalTextureParams 13 "plane1CoordFactor" |
| 67 | OpName %tint_ExternalTextureParams "tint_ExternalTextureParams" |
| 68 | OpName %res "res" |
| 69 | OpName %fragment_main "fragment_main" |
| 70 | OpName %compute_main "compute_main" |
| 71 | OpName %vertex_main_inner "vertex_main_inner" |
| 72 | OpMemberName %VertexOutput 0 "pos" |
| 73 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 74 | OpName %VertexOutput "VertexOutput" |
| 75 | OpName %out "out" |
| 76 | OpName %vertex_main "vertex_main" |
| 77 | OpName %convert_tint_ExternalTextureParams "convert_tint_ExternalTextureParams" |
| 78 | OpName %input "input" |
| 79 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 80 | OpDecorate %tint_symbol_1 Block |
| 81 | OpDecorate %1 DescriptorSet 0 |
| 82 | OpDecorate %1 Binding 0 |
| 83 | OpDecorate %arg_0_plane0 DescriptorSet 1 |
| 84 | OpDecorate %arg_0_plane0 Binding 0 |
| 85 | OpDecorate %arg_0_plane1 DescriptorSet 1 |
| 86 | OpDecorate %arg_0_plane1 Binding 1 |
| 87 | OpMemberDecorate %tint_ExternalTextureParams_std140 0 Offset 0 |
| 88 | OpMemberDecorate %tint_ExternalTextureParams_std140 1 Offset 4 |
| 89 | OpMemberDecorate %tint_ExternalTextureParams_std140 2 Offset 16 |
| 90 | OpMemberDecorate %tint_ExternalTextureParams_std140 2 ColMajor |
| 91 | OpMemberDecorate %tint_ExternalTextureParams_std140 2 MatrixStride 16 |
| 92 | OpMemberDecorate %tint_GammaTransferParams 0 Offset 0 |
| 93 | OpMemberDecorate %tint_GammaTransferParams 1 Offset 4 |
| 94 | OpMemberDecorate %tint_GammaTransferParams 2 Offset 8 |
| 95 | OpMemberDecorate %tint_GammaTransferParams 3 Offset 12 |
| 96 | OpMemberDecorate %tint_GammaTransferParams 4 Offset 16 |
| 97 | OpMemberDecorate %tint_GammaTransferParams 5 Offset 20 |
| 98 | OpMemberDecorate %tint_GammaTransferParams 6 Offset 24 |
| 99 | OpMemberDecorate %tint_GammaTransferParams 7 Offset 28 |
| 100 | OpMemberDecorate %tint_ExternalTextureParams_std140 3 Offset 64 |
| 101 | OpMemberDecorate %tint_ExternalTextureParams_std140 4 Offset 96 |
| 102 | OpMemberDecorate %tint_ExternalTextureParams_std140 5 Offset 128 |
| 103 | OpMemberDecorate %tint_ExternalTextureParams_std140 6 Offset 144 |
| 104 | OpMemberDecorate %tint_ExternalTextureParams_std140 7 Offset 160 |
| 105 | OpMemberDecorate %tint_ExternalTextureParams_std140 8 Offset 176 |
| 106 | OpMemberDecorate %tint_ExternalTextureParams_std140 9 Offset 184 |
| 107 | OpMemberDecorate %tint_ExternalTextureParams_std140 10 Offset 192 |
| 108 | OpMemberDecorate %tint_ExternalTextureParams_std140 11 Offset 200 |
| 109 | OpMemberDecorate %tint_ExternalTextureParams_std140 12 Offset 208 |
| 110 | OpMemberDecorate %tint_ExternalTextureParams_std140 13 Offset 216 |
| 111 | OpMemberDecorate %tint_ExternalTextureParams_std140 14 Offset 224 |
| 112 | OpMemberDecorate %tint_ExternalTextureParams_std140 15 Offset 232 |
| 113 | OpMemberDecorate %tint_ExternalTextureParams_std140 16 Offset 240 |
| 114 | OpMemberDecorate %tint_ExternalTextureParams_std140 17 Offset 248 |
| 115 | OpMemberDecorate %tint_ExternalTextureParams_std140 18 Offset 256 |
| 116 | OpMemberDecorate %tint_ExternalTextureParams_std140 19 Offset 264 |
| 117 | OpMemberDecorate %tint_symbol_3_std140 0 Offset 0 |
| 118 | OpDecorate %tint_symbol_3_std140 Block |
| 119 | OpDecorate %11 DescriptorSet 1 |
| 120 | OpDecorate %11 Binding 2 |
| 121 | OpDecorate %11 NonWritable |
| 122 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 123 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 124 | OpDecorate %vertex_main_loc0_Output Flat |
| 125 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 126 | OpMemberDecorate %tint_ExternalTextureParams 0 Offset 0 |
| 127 | OpMemberDecorate %tint_ExternalTextureParams 1 Offset 4 |
| 128 | OpMemberDecorate %tint_ExternalTextureParams 2 Offset 16 |
| 129 | OpMemberDecorate %tint_ExternalTextureParams 2 ColMajor |
| 130 | OpMemberDecorate %tint_ExternalTextureParams 2 MatrixStride 16 |
| 131 | OpMemberDecorate %tint_ExternalTextureParams 3 Offset 64 |
| 132 | OpMemberDecorate %tint_ExternalTextureParams 4 Offset 96 |
| 133 | OpMemberDecorate %tint_ExternalTextureParams 5 Offset 128 |
| 134 | OpMemberDecorate %tint_ExternalTextureParams 5 ColMajor |
| 135 | OpMemberDecorate %tint_ExternalTextureParams 5 MatrixStride 16 |
| 136 | OpMemberDecorate %tint_ExternalTextureParams 6 Offset 176 |
| 137 | OpMemberDecorate %tint_ExternalTextureParams 6 ColMajor |
| 138 | OpMemberDecorate %tint_ExternalTextureParams 6 MatrixStride 8 |
| 139 | OpMemberDecorate %tint_ExternalTextureParams 7 Offset 200 |
| 140 | OpMemberDecorate %tint_ExternalTextureParams 7 ColMajor |
| 141 | OpMemberDecorate %tint_ExternalTextureParams 7 MatrixStride 8 |
| 142 | OpMemberDecorate %tint_ExternalTextureParams 8 Offset 224 |
| 143 | OpMemberDecorate %tint_ExternalTextureParams 9 Offset 232 |
| 144 | OpMemberDecorate %tint_ExternalTextureParams 10 Offset 240 |
| 145 | OpMemberDecorate %tint_ExternalTextureParams 11 Offset 248 |
| 146 | OpMemberDecorate %tint_ExternalTextureParams 12 Offset 256 |
| 147 | OpMemberDecorate %tint_ExternalTextureParams 13 Offset 264 |
| 148 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 149 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 150 | %uint = OpTypeInt 32 0 |
| 151 | %v2uint = OpTypeVector %uint 2 |
| 152 | %tint_symbol_1 = OpTypeStruct %v2uint |
| 153 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 154 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 155 | %float = OpTypeFloat 32 |
| 156 | %8 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| 157 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 158 | %arg_0_plane0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 159 | %arg_0_plane1 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 160 | %v4float = OpTypeVector %float 4 |
| 161 | %mat3v4float = OpTypeMatrix %v4float 3 |
| 162 | %tint_GammaTransferParams = OpTypeStruct %float %float %float %float %float %float %float %uint |
| 163 | %v3float = OpTypeVector %float 3 |
| 164 | %v2float = OpTypeVector %float 2 |
| 165 | %tint_ExternalTextureParams_std140 = OpTypeStruct %uint %uint %mat3v4float %tint_GammaTransferParams %tint_GammaTransferParams %v3float %v3float %v3float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| 166 | %tint_symbol_3_std140 = OpTypeStruct %tint_ExternalTextureParams_std140 |
| 167 | %_ptr_Uniform_tint_symbol_3_std140 = OpTypePointer Uniform %tint_symbol_3_std140 |
| 168 | %11 = OpVariable %_ptr_Uniform_tint_symbol_3_std140 Uniform |
| 169 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 170 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 171 | %_ptr_Output_v2uint = OpTypePointer Output %v2uint |
| 172 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_v2uint Output |
| 173 | %_ptr_Output_float = OpTypePointer Output %float |
| 174 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 175 | %27 = OpTypeFunction %v2uint |
| 176 | %_ptr_Uniform_tint_ExternalTextureParams_std140 = OpTypePointer Uniform %tint_ExternalTextureParams_std140 |
| 177 | %uint_0 = OpConstant %uint 0 |
| 178 | %mat3v3float = OpTypeMatrix %v3float 3 |
| 179 | %mat3v2float = OpTypeMatrix %v2float 3 |
| 180 | %tint_ExternalTextureParams = OpTypeStruct %uint %uint %mat3v4float %tint_GammaTransferParams %tint_GammaTransferParams %mat3v3float %mat3v2float %mat3v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| 181 | %uint_1 = OpConstant %uint 1 |
| 182 | %42 = OpConstantComposite %v2uint %uint_1 %uint_1 |
| 183 | %_ptr_Function_v2uint = OpTypePointer Function %v2uint |
| 184 | %void = OpTypeVoid |
| 185 | %49 = OpTypeFunction %void |
| 186 | %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| 187 | %VertexOutput = OpTypeStruct %v4float %v2uint |
| 188 | %60 = OpTypeFunction %VertexOutput |
| 189 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 190 | %64 = OpConstantNull %VertexOutput |
| 191 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 192 | %67 = OpConstantNull %v4float |
| 193 | %float_1 = OpConstant %float 1 |
| 194 | %78 = OpTypeFunction %tint_ExternalTextureParams %tint_ExternalTextureParams_std140 |
| 195 | %textureDimensions_cdc6c9 = OpFunction %v2uint None %27 |
| 196 | %28 = OpLabel |
| 197 | %res = OpVariable %_ptr_Function_v2uint Function |
| 198 | %29 = OpLoad %8 %arg_0_plane0 |
| 199 | %30 = OpLoad %8 %arg_0_plane1 |
| 200 | %31 = OpAccessChain %_ptr_Uniform_tint_ExternalTextureParams_std140 %11 %uint_0 |
| 201 | %34 = OpLoad %tint_ExternalTextureParams_std140 %31 |
| 202 | %35 = OpFunctionCall %tint_ExternalTextureParams %convert_tint_ExternalTextureParams %34 |
| 203 | %40 = OpCompositeExtract %v2uint %35 12 |
| 204 | %41 = OpIAdd %v2uint %40 %42 |
| 205 | OpStore %res %41 |
| 206 | %46 = OpLoad %v2uint %res |
| 207 | OpReturnValue %46 |
| 208 | OpFunctionEnd |
| 209 | %fragment_main = OpFunction %void None %49 |
| 210 | %50 = OpLabel |
| 211 | %51 = OpFunctionCall %v2uint %textureDimensions_cdc6c9 |
| 212 | %52 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0 |
| 213 | OpStore %52 %51 |
| 214 | OpReturn |
| 215 | OpFunctionEnd |
| 216 | %compute_main = OpFunction %void None %49 |
| 217 | %55 = OpLabel |
| 218 | %56 = OpFunctionCall %v2uint %textureDimensions_cdc6c9 |
| 219 | %57 = OpAccessChain %_ptr_StorageBuffer_v2uint %1 %uint_0 |
| 220 | OpStore %57 %56 |
| 221 | OpReturn |
| 222 | OpFunctionEnd |
| 223 | %vertex_main_inner = OpFunction %VertexOutput None %60 |
| 224 | %61 = OpLabel |
| 225 | %out = OpVariable %_ptr_Function_VertexOutput Function %64 |
| 226 | %65 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 227 | OpStore %65 %67 |
| 228 | %68 = OpAccessChain %_ptr_Function_v2uint %out %uint_1 |
| 229 | %69 = OpFunctionCall %v2uint %textureDimensions_cdc6c9 |
| 230 | OpStore %68 %69 |
| 231 | %70 = OpLoad %VertexOutput %out |
| 232 | OpReturnValue %70 |
| 233 | OpFunctionEnd |
| 234 | %vertex_main = OpFunction %void None %49 |
| 235 | %72 = OpLabel |
| 236 | %73 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 237 | %74 = OpCompositeExtract %v4float %73 0 |
| 238 | OpStore %vertex_main_position_Output %74 |
| 239 | %75 = OpCompositeExtract %v2uint %73 1 |
| 240 | OpStore %vertex_main_loc0_Output %75 |
| 241 | OpStore %vertex_main___point_size_Output %float_1 |
| 242 | OpReturn |
| 243 | OpFunctionEnd |
| 244 | %convert_tint_ExternalTextureParams = OpFunction %tint_ExternalTextureParams None %78 |
| 245 | %input = OpFunctionParameter %tint_ExternalTextureParams_std140 |
| 246 | %79 = OpLabel |
| 247 | %80 = OpCompositeExtract %uint %input 0 |
| 248 | %81 = OpCompositeExtract %uint %input 1 |
| 249 | %82 = OpCompositeExtract %mat3v4float %input 2 |
| 250 | %83 = OpCompositeExtract %tint_GammaTransferParams %input 3 |
| 251 | %84 = OpCompositeExtract %tint_GammaTransferParams %input 4 |
| 252 | %85 = OpCompositeExtract %v3float %input 5 |
| 253 | %86 = OpCompositeExtract %v3float %input 6 |
| 254 | %87 = OpCompositeExtract %v3float %input 7 |
| 255 | %88 = OpCompositeConstruct %mat3v3float %85 %86 %87 |
| 256 | %89 = OpCompositeExtract %v2float %input 8 |
| 257 | %90 = OpCompositeExtract %v2float %input 9 |
| 258 | %91 = OpCompositeExtract %v2float %input 10 |
| 259 | %92 = OpCompositeConstruct %mat3v2float %89 %90 %91 |
| 260 | %93 = OpCompositeExtract %v2float %input 11 |
| 261 | %94 = OpCompositeExtract %v2float %input 12 |
| 262 | %95 = OpCompositeExtract %v2float %input 13 |
| 263 | %96 = OpCompositeConstruct %mat3v2float %93 %94 %95 |
| 264 | %97 = OpCompositeExtract %v2float %input 14 |
| 265 | %98 = OpCompositeExtract %v2float %input 15 |
| 266 | %99 = OpCompositeExtract %v2float %input 16 |
| 267 | %100 = OpCompositeExtract %v2float %input 17 |
| 268 | %101 = OpCompositeExtract %v2uint %input 18 |
| 269 | %102 = OpCompositeExtract %v2float %input 19 |
| 270 | %103 = OpCompositeConstruct %tint_ExternalTextureParams %80 %81 %82 %83 %84 %88 %92 %96 %97 %98 %99 %100 %101 %102 |
| 271 | OpReturnValue %103 |
| 272 | OpFunctionEnd |