| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 225 |
| ; Schema: 0 |
| OpCapability Shader |
| %37 = 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 %arg_1 "arg_1" |
| OpName %gammaCorrection "gammaCorrection" |
| OpName %v "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 %textureSampleExternal "textureSampleExternal" |
| OpName %plane0 "plane0" |
| OpName %plane1 "plane1" |
| OpName %smp "smp" |
| OpName %coord "coord" |
| OpName %params_0 "params" |
| OpName %color "color" |
| OpName %conv_ExternalTextureParams "conv_ExternalTextureParams" |
| OpName %val "val" |
| OpName %textureSampleBaseClampToEdge_7c04e6 "textureSampleBaseClampToEdge_7c04e6" |
| 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 2 |
| 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 3 |
| 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 |
| OpDecorate %arg_1 DescriptorSet 1 |
| OpDecorate %arg_1 Binding 1 |
| 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 |
| %30 = OpTypeSampler |
| %_ptr_UniformConstant_30 = OpTypePointer UniformConstant %30 |
| %arg_1 = OpVariable %_ptr_UniformConstant_30 UniformConstant |
| %31 = OpTypeFunction %v3float %v3float %GammaTransferParams |
| %bool = OpTypeBool |
| %v3bool = OpTypeVector %bool 3 |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %51 = OpConstantNull %v3float |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %ExternalTextureParams = OpTypeStruct %uint %uint %mat3v4float %GammaTransferParams %GammaTransferParams %mat3v3float %mat3v2float %mat3v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| %71 = OpTypeFunction %v4float %12 %12 %30 %v2float %ExternalTextureParams |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %uint_1 = OpConstant %uint 1 |
| %99 = OpTypeSampledImage %12 |
| %121 = OpConstantNull %uint |
| %uint_3 = OpConstant %uint 3 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %158 = OpTypeFunction %ExternalTextureParams %ExternalTextureParams_std140 |
| %183 = OpTypeFunction %v4float |
| %190 = OpConstantComposite %v2float %float_1 %float_1 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_ExternalTextureParams_std140 = OpTypePointer Uniform %ExternalTextureParams_std140 |
| %void = OpTypeVoid |
| %198 = OpTypeFunction %void |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %VertexOutput = OpTypeStruct %v4float %v4float |
| %209 = OpTypeFunction %VertexOutput |
| %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| %215 = OpConstantNull %VertexOutput |
| %gammaCorrection = OpFunction %v3float None %31 |
| %v = OpFunctionParameter %v3float |
| %params = OpFunctionParameter %GammaTransferParams |
| %35 = OpLabel |
| %49 = OpVariable %_ptr_Function_v3float Function %51 |
| %61 = OpVariable %_ptr_Function_v3float Function %51 |
| %67 = OpVariable %_ptr_Function_v3float Function %51 |
| %36 = OpExtInst %v3float %37 FAbs %v |
| %38 = OpCompositeExtract %float %params 4 |
| %39 = OpCompositeConstruct %v3float %38 %38 %38 |
| %40 = OpFOrdLessThan %v3bool %36 %39 |
| %43 = OpExtInst %v3float %37 FSign %v |
| %44 = OpCompositeExtract %float %params 3 |
| %45 = OpExtInst %v3float %37 FAbs %v |
| %46 = OpVectorTimesScalar %v3float %45 %44 |
| %47 = OpCompositeExtract %float %params 6 |
| %52 = OpCompositeConstruct %v3float %47 %47 %47 |
| %48 = OpFAdd %v3float %46 %52 |
| %53 = OpFMul %v3float %43 %48 |
| %54 = OpExtInst %v3float %37 FSign %v |
| %56 = OpCompositeExtract %float %params 1 |
| %57 = OpExtInst %v3float %37 FAbs %v |
| %58 = OpVectorTimesScalar %v3float %57 %56 |
| %59 = OpCompositeExtract %float %params 2 |
| %62 = OpCompositeConstruct %v3float %59 %59 %59 |
| %60 = OpFAdd %v3float %58 %62 |
| %63 = OpCompositeExtract %float %params 0 |
| %64 = OpCompositeConstruct %v3float %63 %63 %63 |
| %55 = OpExtInst %v3float %37 Pow %60 %64 |
| %65 = OpCompositeExtract %float %params 5 |
| %68 = OpCompositeConstruct %v3float %65 %65 %65 |
| %66 = OpFAdd %v3float %55 %68 |
| %69 = OpFMul %v3float %54 %66 |
| %70 = OpSelect %v3float %40 %53 %69 |
| OpReturnValue %70 |
| OpFunctionEnd |
| %textureSampleExternal = OpFunction %v4float None %71 |
| %plane0 = OpFunctionParameter %12 |
| %plane1 = OpFunctionParameter %12 |
| %smp = OpFunctionParameter %30 |
| %coord = OpFunctionParameter %v2float |
| %params_0 = OpFunctionParameter %ExternalTextureParams |
| %80 = OpLabel |
| %color = OpVariable %_ptr_Function_v4float Function %5 |
| %81 = OpCompositeExtract %mat3v2float %params_0 6 |
| %82 = OpCompositeExtract %float %coord 0 |
| %83 = OpCompositeExtract %float %coord 1 |
| %85 = OpCompositeConstruct %v3float %82 %83 %float_1 |
| %86 = OpMatrixTimesVector %v2float %81 %85 |
| %88 = OpCompositeExtract %v2float %params_0 8 |
| %89 = OpCompositeExtract %v2float %params_0 9 |
| %87 = OpExtInst %v2float %37 NClamp %86 %88 %89 |
| %92 = OpCompositeExtract %uint %params_0 0 |
| %94 = OpIEqual %bool %92 %uint_1 |
| OpSelectionMerge %95 None |
| OpBranchConditional %94 %96 %97 |
| %96 = OpLabel |
| %100 = OpSampledImage %99 %plane0 %smp |
| %98 = OpImageSampleExplicitLod %v4float %100 %87 Lod %9 |
| %101 = OpVectorShuffle %v4float %98 %98 0 1 2 3 |
| OpStore %color %101 |
| OpBranch %95 |
| %97 = OpLabel |
| %103 = OpCompositeExtract %v2float %params_0 10 |
| %104 = OpCompositeExtract %v2float %params_0 11 |
| %102 = OpExtInst %v2float %37 NClamp %86 %103 %104 |
| %106 = OpSampledImage %99 %plane0 %smp |
| %105 = OpImageSampleExplicitLod %v4float %106 %87 Lod %9 |
| %107 = OpCompositeExtract %float %105 0 |
| %109 = OpSampledImage %99 %plane1 %smp |
| %108 = OpImageSampleExplicitLod %v4float %109 %102 Lod %9 |
| %110 = OpVectorShuffle %v2float %108 %108 0 1 |
| %111 = OpCompositeExtract %float %110 0 |
| %112 = OpCompositeExtract %float %110 1 |
| %113 = OpCompositeConstruct %v4float %107 %111 %112 %float_1 |
| %114 = OpCompositeExtract %mat3v4float %params_0 2 |
| %115 = OpVectorTimesMatrix %v3float %113 %114 |
| %116 = OpCompositeExtract %float %115 0 |
| %117 = OpCompositeExtract %float %115 1 |
| %118 = OpCompositeExtract %float %115 2 |
| %119 = OpCompositeConstruct %v4float %116 %117 %118 %float_1 |
| OpStore %color %119 |
| OpBranch %95 |
| %95 = OpLabel |
| %120 = OpCompositeExtract %uint %params_0 1 |
| %122 = OpIEqual %bool %120 %121 |
| OpSelectionMerge %123 None |
| OpBranchConditional %122 %124 %123 |
| %124 = OpLabel |
| %126 = OpLoad %v4float %color |
| %127 = OpVectorShuffle %v3float %126 %126 0 1 2 |
| %128 = OpCompositeExtract %GammaTransferParams %params_0 3 |
| %125 = OpFunctionCall %v3float %gammaCorrection %127 %128 |
| %129 = OpCompositeExtract %float %125 0 |
| %130 = OpCompositeExtract %float %125 1 |
| %131 = OpCompositeExtract %float %125 2 |
| %134 = OpAccessChain %_ptr_Function_float %color %uint_3 |
| %135 = OpLoad %float %134 |
| %136 = OpCompositeConstruct %v4float %129 %130 %131 %135 |
| OpStore %color %136 |
| %137 = OpCompositeExtract %mat3v3float %params_0 5 |
| %138 = OpLoad %v4float %color |
| %139 = OpVectorShuffle %v3float %138 %138 0 1 2 |
| %140 = OpMatrixTimesVector %v3float %137 %139 |
| %141 = OpCompositeExtract %float %140 0 |
| %142 = OpCompositeExtract %float %140 1 |
| %143 = OpCompositeExtract %float %140 2 |
| %144 = OpAccessChain %_ptr_Function_float %color %uint_3 |
| %145 = OpLoad %float %144 |
| %146 = OpCompositeConstruct %v4float %141 %142 %143 %145 |
| OpStore %color %146 |
| %148 = OpLoad %v4float %color |
| %149 = OpVectorShuffle %v3float %148 %148 0 1 2 |
| %150 = OpCompositeExtract %GammaTransferParams %params_0 4 |
| %147 = OpFunctionCall %v3float %gammaCorrection %149 %150 |
| %151 = OpCompositeExtract %float %147 0 |
| %152 = OpCompositeExtract %float %147 1 |
| %153 = OpCompositeExtract %float %147 2 |
| %154 = OpAccessChain %_ptr_Function_float %color %uint_3 |
| %155 = OpLoad %float %154 |
| %156 = OpCompositeConstruct %v4float %151 %152 %153 %155 |
| OpStore %color %156 |
| OpBranch %123 |
| %123 = OpLabel |
| %157 = OpLoad %v4float %color |
| OpReturnValue %157 |
| OpFunctionEnd |
| %conv_ExternalTextureParams = OpFunction %ExternalTextureParams None %158 |
| %val = OpFunctionParameter %ExternalTextureParams_std140 |
| %161 = OpLabel |
| %162 = OpCompositeExtract %uint %val 0 |
| %163 = OpCompositeExtract %uint %val 1 |
| %164 = OpCompositeExtract %mat3v4float %val 2 |
| %165 = OpCompositeExtract %GammaTransferParams %val 3 |
| %166 = OpCompositeExtract %GammaTransferParams %val 4 |
| %167 = OpCompositeExtract %mat3v3float %val 5 |
| %168 = OpCompositeExtract %v2float %val 6 |
| %169 = OpCompositeExtract %v2float %val 7 |
| %170 = OpCompositeExtract %v2float %val 8 |
| %171 = OpCompositeConstruct %mat3v2float %168 %169 %170 |
| %172 = OpCompositeExtract %v2float %val 9 |
| %173 = OpCompositeExtract %v2float %val 10 |
| %174 = OpCompositeExtract %v2float %val 11 |
| %175 = OpCompositeConstruct %mat3v2float %172 %173 %174 |
| %176 = OpCompositeExtract %v2float %val 12 |
| %177 = OpCompositeExtract %v2float %val 13 |
| %178 = OpCompositeExtract %v2float %val 14 |
| %179 = OpCompositeExtract %v2float %val 15 |
| %180 = OpCompositeExtract %v2uint %val 16 |
| %181 = OpCompositeExtract %v2float %val 17 |
| %182 = OpCompositeConstruct %ExternalTextureParams %162 %163 %164 %165 %166 %167 %171 %175 %176 %177 %178 %179 %180 %181 |
| OpReturnValue %182 |
| OpFunctionEnd |
| %textureSampleBaseClampToEdge_7c04e6 = OpFunction %v4float None %183 |
| %185 = OpLabel |
| %res = OpVariable %_ptr_Function_v4float Function %5 |
| %187 = OpLoad %12 %arg_0 |
| %188 = OpLoad %12 %ext_tex_plane_1 |
| %189 = OpLoad %30 %arg_1 |
| %194 = OpAccessChain %_ptr_Uniform_ExternalTextureParams_std140 %ext_tex_params %uint_0 |
| %195 = OpLoad %ExternalTextureParams_std140 %194 |
| %191 = OpFunctionCall %ExternalTextureParams %conv_ExternalTextureParams %195 |
| %186 = OpFunctionCall %v4float %textureSampleExternal %187 %188 %189 %190 %191 |
| OpStore %res %186 |
| %197 = OpLoad %v4float %res |
| OpReturnValue %197 |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %198 |
| %201 = OpLabel |
| %203 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0 |
| %204 = OpFunctionCall %v4float %textureSampleBaseClampToEdge_7c04e6 |
| OpStore %203 %204 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %198 |
| %206 = OpLabel |
| %207 = OpAccessChain %_ptr_StorageBuffer_v4float %prevent_dce %uint_0 |
| %208 = OpFunctionCall %v4float %textureSampleBaseClampToEdge_7c04e6 |
| OpStore %207 %208 |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %VertexOutput None %209 |
| %212 = OpLabel |
| %out = OpVariable %_ptr_Function_VertexOutput Function %215 |
| %216 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| OpStore %216 %5 |
| %217 = OpAccessChain %_ptr_Function_v4float %out %uint_1 |
| %218 = OpFunctionCall %v4float %textureSampleBaseClampToEdge_7c04e6 |
| OpStore %217 %218 |
| %219 = OpLoad %VertexOutput %out |
| OpReturnValue %219 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %198 |
| %221 = OpLabel |
| %222 = OpFunctionCall %VertexOutput %vertex_main_inner |
| %223 = OpCompositeExtract %v4float %222 0 |
| OpStore %pos_1 %223 |
| %224 = OpCompositeExtract %v4float %222 1 |
| OpStore %prevent_dce_1 %224 |
| OpStore %vertex_point_size %float_1 |
| OpReturn |
| OpFunctionEnd |