| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 240 |
| ; Schema: 0 |
| OpCapability Shader |
| %51 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %fragment_main "fragment_main" |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpEntryPoint Vertex %vertex_main "vertex_main" %pos_1 %prevent_dce_1 %vertex_point_size |
| OpExecutionMode %fragment_main OriginUpperLeft |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpName %pos_1 "pos_1" |
| OpName %prevent_dce_1 "prevent_dce_1" |
| OpName %vertex_point_size "vertex_point_size" |
| OpName %ext_tex_plane_1 "ext_tex_plane_1" |
| OpName %ext_tex_params_block_std140 "ext_tex_params_block_std140" |
| OpMemberName %ext_tex_params_block_std140 0 "inner" |
| OpName %ExternalTextureParams_std140 "ExternalTextureParams_std140" |
| OpMemberName %ExternalTextureParams_std140 0 "numPlanes" |
| OpMemberName %ExternalTextureParams_std140 1 "doYuvToRgbConversionOnly" |
| OpMemberName %ExternalTextureParams_std140 2 "yuvToRgbConversionMatrix" |
| OpMemberName %ExternalTextureParams_std140 3 "gammaDecodeParams" |
| OpName %GammaTransferParams "GammaTransferParams" |
| OpMemberName %GammaTransferParams 0 "G" |
| OpMemberName %GammaTransferParams 1 "A" |
| OpMemberName %GammaTransferParams 2 "B" |
| OpMemberName %GammaTransferParams 3 "C" |
| OpMemberName %GammaTransferParams 4 "D" |
| OpMemberName %GammaTransferParams 5 "E" |
| OpMemberName %GammaTransferParams 6 "F" |
| OpMemberName %GammaTransferParams 7 "padding" |
| OpMemberName %ExternalTextureParams_std140 4 "gammaEncodeParams" |
| OpMemberName %ExternalTextureParams_std140 5 "gamutConversionMatrix" |
| OpMemberName %ExternalTextureParams_std140 6 "sampleTransform_0" |
| OpMemberName %ExternalTextureParams_std140 7 "sampleTransform_1" |
| OpMemberName %ExternalTextureParams_std140 8 "sampleTransform_2" |
| OpMemberName %ExternalTextureParams_std140 9 "loadTransform_0" |
| OpMemberName %ExternalTextureParams_std140 10 "loadTransform_1" |
| OpMemberName %ExternalTextureParams_std140 11 "loadTransform_2" |
| OpMemberName %ExternalTextureParams_std140 12 "samplePlane0RectMin" |
| OpMemberName %ExternalTextureParams_std140 13 "samplePlane0RectMax" |
| OpMemberName %ExternalTextureParams_std140 14 "samplePlane1RectMin" |
| OpMemberName %ExternalTextureParams_std140 15 "samplePlane1RectMax" |
| OpMemberName %ExternalTextureParams_std140 16 "visibleSize" |
| OpMemberName %ExternalTextureParams_std140 17 "plane1CoordFactor" |
| OpName %ext_tex_params "ext_tex_params" |
| OpName %prevent_dce_block "prevent_dce_block" |
| OpMemberName %prevent_dce_block 0 "inner" |
| OpName %prevent_dce "prevent_dce" |
| OpName %arg_0 "arg_0" |
| OpName %tint_ftou "tint_ftou" |
| OpName %v "v" |
| OpName %gammaCorrection "gammaCorrection" |
| OpName %v_0 "v" |
| OpName %params "params" |
| OpName %ExternalTextureParams "ExternalTextureParams" |
| OpMemberName %ExternalTextureParams 0 "numPlanes" |
| OpMemberName %ExternalTextureParams 1 "doYuvToRgbConversionOnly" |
| OpMemberName %ExternalTextureParams 2 "yuvToRgbConversionMatrix" |
| OpMemberName %ExternalTextureParams 3 "gammaDecodeParams" |
| OpMemberName %ExternalTextureParams 4 "gammaEncodeParams" |
| OpMemberName %ExternalTextureParams 5 "gamutConversionMatrix" |
| OpMemberName %ExternalTextureParams 6 "sampleTransform" |
| OpMemberName %ExternalTextureParams 7 "loadTransform" |
| OpMemberName %ExternalTextureParams 8 "samplePlane0RectMin" |
| OpMemberName %ExternalTextureParams 9 "samplePlane0RectMax" |
| OpMemberName %ExternalTextureParams 10 "samplePlane1RectMin" |
| OpMemberName %ExternalTextureParams 11 "samplePlane1RectMax" |
| OpMemberName %ExternalTextureParams 12 "visibleSize" |
| OpMemberName %ExternalTextureParams 13 "plane1CoordFactor" |
| OpName %textureLoadExternal "textureLoadExternal" |
| OpName %plane0 "plane0" |
| OpName %plane1 "plane1" |
| OpName %coord "coord" |
| OpName %params_0 "params" |
| OpName %color "color" |
| OpName %conv_ExternalTextureParams "conv_ExternalTextureParams" |
| OpName %val "val" |
| OpName %textureLoad_8acf41 "textureLoad_8acf41" |
| OpName %res "res" |
| OpName %fragment_main "fragment_main" |
| OpName %compute_main "compute_main" |
| OpName %VertexOutput "VertexOutput" |
| OpMemberName %VertexOutput 0 "pos" |
| OpMemberName %VertexOutput 1 "prevent_dce" |
| OpName %vertex_main_inner "vertex_main_inner" |
| OpName %out "out" |
| OpName %vertex_main "vertex_main" |
| OpDecorate %pos_1 BuiltIn Position |
| OpDecorate %prevent_dce_1 Location 0 |
| OpDecorate %prevent_dce_1 Flat |
| OpDecorate %vertex_point_size BuiltIn PointSize |
| OpDecorate %ext_tex_plane_1 DescriptorSet 1 |
| OpDecorate %ext_tex_plane_1 Binding 1 |
| OpDecorate %ext_tex_params_block_std140 Block |
| OpMemberDecorate %ext_tex_params_block_std140 0 Offset 0 |
| OpMemberDecorate %ExternalTextureParams_std140 0 Offset 0 |
| OpMemberDecorate %ExternalTextureParams_std140 1 Offset 4 |
| OpMemberDecorate %ExternalTextureParams_std140 2 Offset 16 |
| OpMemberDecorate %ExternalTextureParams_std140 2 ColMajor |
| OpMemberDecorate %ExternalTextureParams_std140 2 MatrixStride 16 |
| OpMemberDecorate %ExternalTextureParams_std140 3 Offset 64 |
| OpMemberDecorate %GammaTransferParams 0 Offset 0 |
| OpMemberDecorate %GammaTransferParams 1 Offset 4 |
| OpMemberDecorate %GammaTransferParams 2 Offset 8 |
| OpMemberDecorate %GammaTransferParams 3 Offset 12 |
| OpMemberDecorate %GammaTransferParams 4 Offset 16 |
| OpMemberDecorate %GammaTransferParams 5 Offset 20 |
| OpMemberDecorate %GammaTransferParams 6 Offset 24 |
| OpMemberDecorate %GammaTransferParams 7 Offset 28 |
| OpMemberDecorate %ExternalTextureParams_std140 4 Offset 96 |
| OpMemberDecorate %ExternalTextureParams_std140 5 Offset 128 |
| OpMemberDecorate %ExternalTextureParams_std140 5 ColMajor |
| OpMemberDecorate %ExternalTextureParams_std140 5 MatrixStride 16 |
| OpMemberDecorate %ExternalTextureParams_std140 6 Offset 176 |
| OpMemberDecorate %ExternalTextureParams_std140 7 Offset 184 |
| OpMemberDecorate %ExternalTextureParams_std140 8 Offset 192 |
| OpMemberDecorate %ExternalTextureParams_std140 9 Offset 200 |
| OpMemberDecorate %ExternalTextureParams_std140 10 Offset 208 |
| OpMemberDecorate %ExternalTextureParams_std140 11 Offset 216 |
| OpMemberDecorate %ExternalTextureParams_std140 12 Offset 224 |
| OpMemberDecorate %ExternalTextureParams_std140 13 Offset 232 |
| OpMemberDecorate %ExternalTextureParams_std140 14 Offset 240 |
| OpMemberDecorate %ExternalTextureParams_std140 15 Offset 248 |
| OpMemberDecorate %ExternalTextureParams_std140 16 Offset 256 |
| OpMemberDecorate %ExternalTextureParams_std140 17 Offset 264 |
| OpDecorate %ext_tex_params NonWritable |
| OpDecorate %ext_tex_params DescriptorSet 1 |
| OpDecorate %ext_tex_params Binding 2 |
| OpDecorate %prevent_dce_block Block |
| OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| OpDecorate %prevent_dce DescriptorSet 0 |
| OpDecorate %prevent_dce Binding 0 |
| OpDecorate %arg_0 DescriptorSet 1 |
| OpDecorate %arg_0 Binding 0 |
| OpMemberDecorate %ExternalTextureParams 0 Offset 0 |
| OpMemberDecorate %ExternalTextureParams 1 Offset 4 |
| OpMemberDecorate %ExternalTextureParams 2 Offset 16 |
| OpMemberDecorate %ExternalTextureParams 2 ColMajor |
| OpMemberDecorate %ExternalTextureParams 2 MatrixStride 16 |
| OpMemberDecorate %ExternalTextureParams 3 Offset 64 |
| OpMemberDecorate %ExternalTextureParams 4 Offset 96 |
| OpMemberDecorate %ExternalTextureParams 5 Offset 128 |
| OpMemberDecorate %ExternalTextureParams 5 ColMajor |
| OpMemberDecorate %ExternalTextureParams 5 MatrixStride 16 |
| OpMemberDecorate %ExternalTextureParams 6 Offset 176 |
| OpMemberDecorate %ExternalTextureParams 6 ColMajor |
| OpMemberDecorate %ExternalTextureParams 6 MatrixStride 8 |
| OpMemberDecorate %ExternalTextureParams 7 Offset 200 |
| OpMemberDecorate %ExternalTextureParams 7 ColMajor |
| OpMemberDecorate %ExternalTextureParams 7 MatrixStride 8 |
| OpMemberDecorate %ExternalTextureParams 8 Offset 224 |
| OpMemberDecorate %ExternalTextureParams 9 Offset 232 |
| OpMemberDecorate %ExternalTextureParams 10 Offset 240 |
| OpMemberDecorate %ExternalTextureParams 11 Offset 248 |
| OpMemberDecorate %ExternalTextureParams 12 Offset 256 |
| OpMemberDecorate %ExternalTextureParams 13 Offset 264 |
| OpMemberDecorate %VertexOutput 0 Offset 0 |
| OpMemberDecorate %VertexOutput 1 Offset 16 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %5 = OpConstantNull %v4float |
| %pos_1 = OpVariable %_ptr_Output_v4float Output %5 |
| %prevent_dce_1 = OpVariable %_ptr_Output_v4float Output %5 |
| %_ptr_Output_float = OpTypePointer Output %float |
| %9 = OpConstantNull %float |
| %vertex_point_size = OpVariable %_ptr_Output_float Output %9 |
| %12 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| %_ptr_UniformConstant_12 = OpTypePointer UniformConstant %12 |
| %ext_tex_plane_1 = OpVariable %_ptr_UniformConstant_12 UniformConstant |
| %uint = OpTypeInt 32 0 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %GammaTransferParams = OpTypeStruct %float %float %float %float %float %float %float %uint |
| %v3float = OpTypeVector %float 3 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %v2float = OpTypeVector %float 2 |
| %v2uint = OpTypeVector %uint 2 |
| %ExternalTextureParams_std140 = OpTypeStruct %uint %uint %mat3v4float %GammaTransferParams %GammaTransferParams %mat3v3float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| %ext_tex_params_block_std140 = OpTypeStruct %ExternalTextureParams_std140 |
| %_ptr_Uniform_ext_tex_params_block_std140 = OpTypePointer Uniform %ext_tex_params_block_std140 |
| %ext_tex_params = OpVariable %_ptr_Uniform_ext_tex_params_block_std140 Uniform |
| %prevent_dce_block = OpTypeStruct %v4float |
| %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| %arg_0 = OpVariable %_ptr_UniformConstant_12 UniformConstant |
| %28 = OpTypeFunction %v2uint %v2float |
| %float_4_29496704e_09 = OpConstant %float 4.29496704e+09 |
| %34 = OpConstantComposite %v2float %float_4_29496704e_09 %float_4_29496704e_09 |
| %bool = OpTypeBool |
| %v2bool = OpTypeVector %bool 2 |
| %39 = OpConstantNull %v2float |
| %41 = OpConstantNull %v2uint |
| %uint_4294967295 = OpConstant %uint 4294967295 |
| %44 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295 |
| %45 = OpTypeFunction %v3float %v3float %GammaTransferParams |
| %v3bool = OpTypeVector %bool 3 |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %64 = OpConstantNull %v3float |
| %int = OpTypeInt 32 1 |
| %v2int = OpTypeVector %int 2 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %ExternalTextureParams = OpTypeStruct %uint %uint %mat3v4float %GammaTransferParams %GammaTransferParams %mat3v3float %mat3v2float %mat3v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| %84 = OpTypeFunction %v4float %12 %12 %v2int %ExternalTextureParams |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %uint_1 = OpConstant %uint 1 |
| %116 = OpConstantNull %int |
| %136 = OpConstantNull %uint |
| %uint_3 = OpConstant %uint 3 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %173 = OpTypeFunction %ExternalTextureParams %ExternalTextureParams_std140 |
| %198 = OpTypeFunction %v4float |
| %int_1 = OpConstant %int 1 |
| %205 = OpConstantComposite %v2int %int_1 %int_1 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_ExternalTextureParams_std140 = OpTypePointer Uniform %ExternalTextureParams_std140 |
| %void = OpTypeVoid |
| %213 = OpTypeFunction %void |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %VertexOutput = OpTypeStruct %v4float %v4float |
| %224 = OpTypeFunction %VertexOutput |
| %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| %230 = OpConstantNull %VertexOutput |
| %tint_ftou = OpFunction %v2uint None %28 |
| %v = OpFunctionParameter %v2float |
| %31 = OpLabel |
| %35 = OpFOrdLessThan %v2bool %v %34 |
| %40 = OpFOrdLessThan %v2bool %v %39 |
| %42 = OpConvertFToU %v2uint %v |
| %38 = OpSelect %v2uint %40 %41 %42 |
| %32 = OpSelect %v2uint %35 %38 %44 |
| OpReturnValue %32 |
| OpFunctionEnd |
| %gammaCorrection = OpFunction %v3float None %45 |
| %v_0 = OpFunctionParameter %v3float |
| %params = OpFunctionParameter %GammaTransferParams |
| %49 = OpLabel |
| %62 = OpVariable %_ptr_Function_v3float Function %64 |
| %74 = OpVariable %_ptr_Function_v3float Function %64 |
| %80 = OpVariable %_ptr_Function_v3float Function %64 |
| %50 = OpExtInst %v3float %51 FAbs %v_0 |
| %52 = OpCompositeExtract %float %params 4 |
| %53 = OpCompositeConstruct %v3float %52 %52 %52 |
| %54 = OpFOrdLessThan %v3bool %50 %53 |
| %56 = OpExtInst %v3float %51 FSign %v_0 |
| %57 = OpCompositeExtract %float %params 3 |
| %58 = OpExtInst %v3float %51 FAbs %v_0 |
| %59 = OpVectorTimesScalar %v3float %58 %57 |
| %60 = OpCompositeExtract %float %params 6 |
| %65 = OpCompositeConstruct %v3float %60 %60 %60 |
| %61 = OpFAdd %v3float %59 %65 |
| %66 = OpFMul %v3float %56 %61 |
| %67 = OpExtInst %v3float %51 FSign %v_0 |
| %69 = OpCompositeExtract %float %params 1 |
| %70 = OpExtInst %v3float %51 FAbs %v_0 |
| %71 = OpVectorTimesScalar %v3float %70 %69 |
| %72 = OpCompositeExtract %float %params 2 |
| %75 = OpCompositeConstruct %v3float %72 %72 %72 |
| %73 = OpFAdd %v3float %71 %75 |
| %76 = OpCompositeExtract %float %params 0 |
| %77 = OpCompositeConstruct %v3float %76 %76 %76 |
| %68 = OpExtInst %v3float %51 Pow %73 %77 |
| %78 = OpCompositeExtract %float %params 5 |
| %81 = OpCompositeConstruct %v3float %78 %78 %78 |
| %79 = OpFAdd %v3float %68 %81 |
| %82 = OpFMul %v3float %67 %79 |
| %83 = OpSelect %v3float %54 %66 %82 |
| OpReturnValue %83 |
| OpFunctionEnd |
| %textureLoadExternal = OpFunction %v4float None %84 |
| %plane0 = OpFunctionParameter %12 |
| %plane1 = OpFunctionParameter %12 |
| %coord = OpFunctionParameter %v2int |
| %params_0 = OpFunctionParameter %ExternalTextureParams |
| %94 = OpLabel |
| %color = OpVariable %_ptr_Function_v4float Function %5 |
| %96 = OpBitcast %v2uint %coord |
| %97 = OpCompositeExtract %v2uint %params_0 12 |
| %95 = OpExtInst %v2uint %51 UMin %96 %97 |
| %100 = OpCompositeExtract %mat3v2float %params_0 7 |
| %101 = OpConvertUToF %v2float %95 |
| %102 = OpCompositeExtract %float %101 0 |
| %103 = OpCompositeExtract %float %101 1 |
| %105 = OpCompositeConstruct %v3float %102 %103 %float_1 |
| %106 = OpMatrixTimesVector %v2float %100 %105 |
| %99 = OpExtInst %v2float %51 RoundEven %106 |
| %98 = OpFunctionCall %v2uint %tint_ftou %99 |
| %109 = OpCompositeExtract %uint %params_0 0 |
| %111 = OpIEqual %bool %109 %uint_1 |
| OpSelectionMerge %112 None |
| OpBranchConditional %111 %113 %114 |
| %113 = OpLabel |
| %115 = OpImageFetch %v4float %plane0 %98 Lod %116 |
| %117 = OpVectorShuffle %v4float %115 %115 0 1 2 3 |
| OpStore %color %117 |
| OpBranch %112 |
| %114 = OpLabel |
| %119 = OpConvertUToF %v2float %98 |
| %120 = OpCompositeExtract %v2float %params_0 13 |
| %121 = OpFMul %v2float %119 %120 |
| %118 = OpFunctionCall %v2uint %tint_ftou %121 |
| %122 = OpImageFetch %v4float %plane0 %98 Lod %116 |
| %123 = OpCompositeExtract %float %122 0 |
| %124 = OpImageFetch %v4float %plane1 %118 Lod %116 |
| %125 = OpVectorShuffle %v2float %124 %124 0 1 |
| %126 = OpCompositeExtract %float %125 0 |
| %127 = OpCompositeExtract %float %125 1 |
| %128 = OpCompositeConstruct %v4float %123 %126 %127 %float_1 |
| %129 = OpCompositeExtract %mat3v4float %params_0 2 |
| %130 = OpVectorTimesMatrix %v3float %128 %129 |
| %131 = OpCompositeExtract %float %130 0 |
| %132 = OpCompositeExtract %float %130 1 |
| %133 = OpCompositeExtract %float %130 2 |
| %134 = OpCompositeConstruct %v4float %131 %132 %133 %float_1 |
| OpStore %color %134 |
| OpBranch %112 |
| %112 = OpLabel |
| %135 = OpCompositeExtract %uint %params_0 1 |
| %137 = OpIEqual %bool %135 %136 |
| OpSelectionMerge %138 None |
| OpBranchConditional %137 %139 %138 |
| %139 = OpLabel |
| %141 = OpLoad %v4float %color |
| %142 = OpVectorShuffle %v3float %141 %141 0 1 2 |
| %143 = OpCompositeExtract %GammaTransferParams %params_0 3 |
| %140 = OpFunctionCall %v3float %gammaCorrection %142 %143 |
| %144 = OpCompositeExtract %float %140 0 |
| %145 = OpCompositeExtract %float %140 1 |
| %146 = OpCompositeExtract %float %140 2 |
| %149 = OpAccessChain %_ptr_Function_float %color %uint_3 |
| %150 = OpLoad %float %149 |
| %151 = OpCompositeConstruct %v4float %144 %145 %146 %150 |
| OpStore %color %151 |
| %152 = OpCompositeExtract %mat3v3float %params_0 5 |
| %153 = OpLoad %v4float %color |
| %154 = OpVectorShuffle %v3float %153 %153 0 1 2 |
| %155 = OpMatrixTimesVector %v3float %152 %154 |
| %156 = OpCompositeExtract %float %155 0 |
| %157 = OpCompositeExtract %float %155 1 |
| %158 = OpCompositeExtract %float %155 2 |
| %159 = OpAccessChain %_ptr_Function_float %color %uint_3 |
| %160 = OpLoad %float %159 |
| %161 = OpCompositeConstruct %v4float %156 %157 %158 %160 |
| OpStore %color %161 |
| %163 = OpLoad %v4float %color |
| %164 = OpVectorShuffle %v3float %163 %163 0 1 2 |
| %165 = OpCompositeExtract %GammaTransferParams %params_0 4 |
| %162 = OpFunctionCall %v3float %gammaCorrection %164 %165 |
| %166 = OpCompositeExtract %float %162 0 |
| %167 = OpCompositeExtract %float %162 1 |
| %168 = OpCompositeExtract %float %162 2 |
| %169 = OpAccessChain %_ptr_Function_float %color %uint_3 |
| %170 = OpLoad %float %169 |
| %171 = OpCompositeConstruct %v4float %166 %167 %168 %170 |
| OpStore %color %171 |
| OpBranch %138 |
| %138 = OpLabel |
| %172 = OpLoad %v4float %color |
| OpReturnValue %172 |
| OpFunctionEnd |
| %conv_ExternalTextureParams = OpFunction %ExternalTextureParams None %173 |
| %val = OpFunctionParameter %ExternalTextureParams_std140 |
| %176 = OpLabel |
| %177 = OpCompositeExtract %uint %val 0 |
| %178 = OpCompositeExtract %uint %val 1 |
| %179 = OpCompositeExtract %mat3v4float %val 2 |
| %180 = OpCompositeExtract %GammaTransferParams %val 3 |
| %181 = OpCompositeExtract %GammaTransferParams %val 4 |
| %182 = OpCompositeExtract %mat3v3float %val 5 |
| %183 = OpCompositeExtract %v2float %val 6 |
| %184 = OpCompositeExtract %v2float %val 7 |
| %185 = OpCompositeExtract %v2float %val 8 |
| %186 = OpCompositeConstruct %mat3v2float %183 %184 %185 |
| %187 = OpCompositeExtract %v2float %val 9 |
| %188 = OpCompositeExtract %v2float %val 10 |
| %189 = OpCompositeExtract %v2float %val 11 |
| %190 = OpCompositeConstruct %mat3v2float %187 %188 %189 |
| %191 = OpCompositeExtract %v2float %val 12 |
| %192 = OpCompositeExtract %v2float %val 13 |
| %193 = OpCompositeExtract %v2float %val 14 |
| %194 = OpCompositeExtract %v2float %val 15 |
| %195 = OpCompositeExtract %v2uint %val 16 |
| %196 = OpCompositeExtract %v2float %val 17 |
| %197 = OpCompositeConstruct %ExternalTextureParams %177 %178 %179 %180 %181 %182 %186 %190 %191 %192 %193 %194 %195 %196 |
| OpReturnValue %197 |
| OpFunctionEnd |
| %textureLoad_8acf41 = OpFunction %v4float None %198 |
| %200 = OpLabel |
| %res = OpVariable %_ptr_Function_v4float Function %5 |
| %202 = OpLoad %12 %arg_0 |
| %203 = OpLoad %12 %ext_tex_plane_1 |
| %209 = OpAccessChain %_ptr_Uniform_ExternalTextureParams_std140 %ext_tex_params %uint_0 |
| %210 = OpLoad %ExternalTextureParams_std140 %209 |
| %206 = OpFunctionCall %ExternalTextureParams %conv_ExternalTextureParams %210 |
| %201 = OpFunctionCall %v4float %textureLoadExternal %202 %203 %205 %206 |
| OpStore %res %201 |
| %212 = OpLoad %v4float %res |
| OpReturnValue %212 |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %213 |
| %216 = OpLabel |
| %218 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0 |
| %219 = OpFunctionCall %v4float %textureLoad_8acf41 |
| OpStore %218 %219 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %213 |
| %221 = OpLabel |
| %222 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0 |
| %223 = OpFunctionCall %v4float %textureLoad_8acf41 |
| OpStore %222 %223 |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %VertexOutput None %224 |
| %227 = OpLabel |
| %out = OpVariable %_ptr_Function_VertexOutput Function %230 |
| %231 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| OpStore %231 %5 |
| %232 = OpAccessChain %_ptr_Function_v4float %out %uint_1 |
| %233 = OpFunctionCall %v4float %textureLoad_8acf41 |
| OpStore %232 %233 |
| %234 = OpLoad %VertexOutput %out |
| OpReturnValue %234 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %213 |
| %236 = OpLabel |
| %237 = OpFunctionCall %VertexOutput %vertex_main_inner |
| %238 = OpCompositeExtract %v4float %237 0 |
| OpStore %pos_1 %238 |
| %239 = OpCompositeExtract %v4float %237 1 |
| OpStore %prevent_dce_1 %239 |
| OpStore %vertex_point_size %float_1 |
| OpReturn |
| OpFunctionEnd |