| ; |
| ; fragment_main |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 162 |
| ; Schema: 0 |
| OpCapability Shader |
| %43 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %fragment_main "fragment_main" |
| OpExecutionMode %fragment_main OriginUpperLeft |
| OpMemberName %prevent_dce_block 0 "inner" |
| OpName %prevent_dce_block "prevent_dce_block" |
| OpName %arg_0_plane0 "arg_0_plane0" |
| OpName %arg_0_plane1 "arg_0_plane1" |
| OpMemberName %tint_ExternalTextureParams_std140 0 "numPlanes" |
| OpMemberName %tint_ExternalTextureParams_std140 1 "doYuvToRgbConversionOnly" |
| OpMemberName %tint_ExternalTextureParams_std140 2 "yuvToRgbConversionMatrix" |
| OpMemberName %tint_GammaTransferParams 0 "G" |
| OpMemberName %tint_GammaTransferParams 1 "A" |
| OpMemberName %tint_GammaTransferParams 2 "B" |
| OpMemberName %tint_GammaTransferParams 3 "C" |
| OpMemberName %tint_GammaTransferParams 4 "D" |
| OpMemberName %tint_GammaTransferParams 5 "E" |
| OpMemberName %tint_GammaTransferParams 6 "F" |
| OpMemberName %tint_GammaTransferParams 7 "padding" |
| OpName %tint_GammaTransferParams "tint_GammaTransferParams" |
| OpMemberName %tint_ExternalTextureParams_std140 3 "gammaDecodeParams" |
| OpMemberName %tint_ExternalTextureParams_std140 4 "gammaEncodeParams" |
| OpMemberName %tint_ExternalTextureParams_std140 5 "gamutConversionMatrix_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 6 "gamutConversionMatrix_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 7 "gamutConversionMatrix_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 8 "sampleTransform_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 9 "sampleTransform_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 10 "sampleTransform_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 11 "loadTransform_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 12 "loadTransform_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 13 "loadTransform_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 14 "samplePlane0RectMin" |
| OpMemberName %tint_ExternalTextureParams_std140 15 "samplePlane0RectMax" |
| OpMemberName %tint_ExternalTextureParams_std140 16 "samplePlane1RectMin" |
| OpMemberName %tint_ExternalTextureParams_std140 17 "samplePlane1RectMax" |
| OpMemberName %tint_ExternalTextureParams_std140 18 "apparentSize" |
| OpMemberName %tint_ExternalTextureParams_std140 19 "plane1CoordFactor" |
| OpName %tint_ExternalTextureParams_std140 "tint_ExternalTextureParams_std140" |
| OpMemberName %arg_0_params_block_std140 0 "inner" |
| OpName %arg_0_params_block_std140 "arg_0_params_block_std140" |
| OpName %textureLoad_1bfdfb "textureLoad_1bfdfb" |
| OpName %arg_1 "arg_1" |
| OpMemberName %tint_ExternalTextureParams 0 "numPlanes" |
| OpMemberName %tint_ExternalTextureParams 1 "doYuvToRgbConversionOnly" |
| OpMemberName %tint_ExternalTextureParams 2 "yuvToRgbConversionMatrix" |
| OpMemberName %tint_ExternalTextureParams 3 "gammaDecodeParams" |
| OpMemberName %tint_ExternalTextureParams 4 "gammaEncodeParams" |
| OpMemberName %tint_ExternalTextureParams 5 "gamutConversionMatrix" |
| OpMemberName %tint_ExternalTextureParams 6 "sampleTransform" |
| OpMemberName %tint_ExternalTextureParams 7 "loadTransform" |
| OpMemberName %tint_ExternalTextureParams 8 "samplePlane0RectMin" |
| OpMemberName %tint_ExternalTextureParams 9 "samplePlane0RectMax" |
| OpMemberName %tint_ExternalTextureParams 10 "samplePlane1RectMin" |
| OpMemberName %tint_ExternalTextureParams 11 "samplePlane1RectMax" |
| OpMemberName %tint_ExternalTextureParams 12 "apparentSize" |
| OpMemberName %tint_ExternalTextureParams 13 "plane1CoordFactor" |
| OpName %tint_ExternalTextureParams "tint_ExternalTextureParams" |
| OpName %res "res" |
| OpName %fragment_main "fragment_main" |
| OpName %tint_TextureLoadExternal "tint_TextureLoadExternal" |
| OpName %plane_0 "plane_0" |
| OpName %plane_1 "plane_1" |
| OpName %params "params" |
| OpName %coords "coords" |
| OpName %tint_GammaCorrection "tint_GammaCorrection" |
| OpName %v "v" |
| OpName %params_0 "params" |
| OpName %tint_convert_tint_ExternalTextureParams "tint_convert_tint_ExternalTextureParams" |
| OpName %tint_input "tint_input" |
| OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| OpDecorate %prevent_dce_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| OpDecorate %arg_0_plane0 DescriptorSet 1 |
| OpDecorate %arg_0_plane0 Binding 0 |
| OpDecorate %arg_0_plane1 DescriptorSet 1 |
| OpDecorate %arg_0_plane1 Binding 1 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 0 Offset 0 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 1 Offset 4 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 Offset 16 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 ColMajor |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 MatrixStride 16 |
| OpMemberDecorate %tint_GammaTransferParams 0 Offset 0 |
| OpMemberDecorate %tint_GammaTransferParams 1 Offset 4 |
| OpMemberDecorate %tint_GammaTransferParams 2 Offset 8 |
| OpMemberDecorate %tint_GammaTransferParams 3 Offset 12 |
| OpMemberDecorate %tint_GammaTransferParams 4 Offset 16 |
| OpMemberDecorate %tint_GammaTransferParams 5 Offset 20 |
| OpMemberDecorate %tint_GammaTransferParams 6 Offset 24 |
| OpMemberDecorate %tint_GammaTransferParams 7 Offset 28 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 3 Offset 64 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 4 Offset 96 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 5 Offset 128 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 6 Offset 144 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 7 Offset 160 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 8 Offset 176 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 9 Offset 184 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 10 Offset 192 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 11 Offset 200 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 12 Offset 208 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 13 Offset 216 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 14 Offset 224 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 15 Offset 232 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 16 Offset 240 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 17 Offset 248 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 18 Offset 256 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 19 Offset 264 |
| OpMemberDecorate %arg_0_params_block_std140 0 Offset 0 |
| OpDecorate %arg_0_params_block_std140 Block |
| OpDecorate %10 DescriptorSet 1 |
| OpDecorate %10 Binding 2 |
| OpDecorate %10 NonWritable |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %prevent_dce_block = OpTypeStruct %v4float |
| %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| %8 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| %arg_0_plane0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| %arg_0_plane1 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| %uint = OpTypeInt 32 0 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %tint_GammaTransferParams = OpTypeStruct %float %float %float %float %float %float %float %uint |
| %v3float = OpTypeVector %float 3 |
| %v2float = OpTypeVector %float 2 |
| %v2uint = OpTypeVector %uint 2 |
| %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 |
| %arg_0_params_block_std140 = OpTypeStruct %tint_ExternalTextureParams_std140 |
| %_ptr_Uniform_arg_0_params_block_std140 = OpTypePointer Uniform %arg_0_params_block_std140 |
| %10 = OpVariable %_ptr_Uniform_arg_0_params_block_std140 Uniform |
| %21 = OpTypeFunction %v4float |
| %_ptr_Function_v2uint = OpTypePointer Function %v2uint |
| %uint_1 = OpConstant %uint 1 |
| %25 = OpConstantComposite %v2uint %uint_1 %uint_1 |
| %_ptr_Uniform_tint_ExternalTextureParams_std140 = OpTypePointer Uniform %tint_ExternalTextureParams_std140 |
| %uint_0 = OpConstant %uint 0 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %tint_ExternalTextureParams = OpTypeStruct %uint %uint %mat3v4float %tint_GammaTransferParams %tint_GammaTransferParams %mat3v3float %mat3v2float %mat3v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %void = OpTypeVoid |
| %51 = OpTypeFunction %void |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %60 = OpTypeFunction %v4float %8 %8 %tint_ExternalTextureParams %v2uint |
| %float_1 = OpConstant %float 1 |
| %bool = OpTypeBool |
| %108 = OpTypeFunction %v3float %v3float %tint_GammaTransferParams |
| %v3bool = OpTypeVector %bool 3 |
| %136 = OpTypeFunction %tint_ExternalTextureParams %tint_ExternalTextureParams_std140 |
| %textureLoad_1bfdfb = OpFunction %v4float None %21 |
| %22 = OpLabel |
| %arg_1 = OpVariable %_ptr_Function_v2uint Function |
| %res = OpVariable %_ptr_Function_v4float Function |
| OpStore %arg_1 %25 |
| %27 = OpLoad %8 %arg_0_plane0 None |
| %28 = OpLoad %8 %arg_0_plane1 None |
| %29 = OpAccessChain %_ptr_Uniform_tint_ExternalTextureParams_std140 %10 %uint_0 |
| %32 = OpLoad %tint_ExternalTextureParams_std140 %29 None |
| %33 = OpFunctionCall %tint_ExternalTextureParams %tint_convert_tint_ExternalTextureParams %32 |
| %38 = OpLoad %v2uint %arg_1 None |
| %39 = OpCompositeExtract %v2uint %33 12 |
| %40 = OpIAdd %v2uint %39 %25 |
| %41 = OpISub %v2uint %40 %25 |
| %42 = OpExtInst %v2uint %43 UMin %38 %41 |
| %44 = OpFunctionCall %v4float %tint_TextureLoadExternal %27 %28 %33 %42 |
| OpStore %res %44 |
| %48 = OpLoad %v4float %res None |
| OpReturnValue %48 |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %51 |
| %52 = OpLabel |
| %53 = OpFunctionCall %v4float %textureLoad_1bfdfb |
| %54 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 |
| OpStore %54 %53 None |
| OpReturn |
| OpFunctionEnd |
| %tint_TextureLoadExternal = OpFunction %v4float None %60 |
| %plane_0 = OpFunctionParameter %8 |
| %plane_1 = OpFunctionParameter %8 |
| %params = OpFunctionParameter %tint_ExternalTextureParams |
| %coords = OpFunctionParameter %v2uint |
| %61 = OpLabel |
| %62 = OpCompositeExtract %uint %params 1 |
| %63 = OpCompositeExtract %mat3v4float %params 2 |
| %64 = OpCompositeExtract %mat3v2float %params 7 |
| %65 = OpCompositeExtract %v2uint %params 12 |
| %66 = OpCompositeExtract %v2float %params 13 |
| %67 = OpExtInst %v2uint %43 UMin %coords %65 |
| %68 = OpConvertUToF %v2float %67 |
| %69 = OpCompositeConstruct %v3float %68 %float_1 |
| %71 = OpMatrixTimesVector %v2float %64 %69 |
| %72 = OpExtInst %v2float %43 RoundEven %71 |
| %73 = OpConvertFToU %v2uint %72 |
| %74 = OpCompositeExtract %uint %params 0 |
| %75 = OpIEqual %bool %74 %uint_1 |
| OpSelectionMerge %77 None |
| OpBranchConditional %75 %78 %79 |
| %78 = OpLabel |
| %92 = OpImageFetch %v4float %plane_0 %73 Lod %uint_0 |
| %81 = OpVectorShuffle %v3float %92 %92 0 1 2 |
| %84 = OpCompositeExtract %float %92 3 |
| OpBranch %77 |
| %79 = OpLabel |
| %93 = OpImageFetch %v4float %plane_0 %73 Lod %uint_0 |
| %94 = OpCompositeExtract %float %93 0 |
| %95 = OpFMul %v2float %72 %66 |
| %96 = OpConvertFToU %v2uint %95 |
| %97 = OpImageFetch %v4float %plane_1 %96 Lod %uint_0 |
| %98 = OpVectorShuffle %v2float %97 %97 0 1 |
| %99 = OpCompositeConstruct %v4float %94 %98 %float_1 |
| %82 = OpVectorTimesMatrix %v3float %99 %63 |
| OpBranch %77 |
| %77 = OpLabel |
| %80 = OpPhi %v3float %81 %78 %82 %79 |
| %83 = OpPhi %float %84 %78 %float_1 %79 |
| %85 = OpIEqual %bool %62 %uint_0 |
| OpSelectionMerge %86 None |
| OpBranchConditional %85 %87 %88 |
| %87 = OpLabel |
| %100 = OpCompositeExtract %tint_GammaTransferParams %params 3 |
| %101 = OpCompositeExtract %tint_GammaTransferParams %params 4 |
| %102 = OpCompositeExtract %mat3v3float %params 5 |
| %103 = OpFunctionCall %v3float %tint_GammaCorrection %80 %100 |
| %105 = OpMatrixTimesVector %v3float %102 %103 |
| %90 = OpFunctionCall %v3float %tint_GammaCorrection %105 %101 |
| OpBranch %86 |
| %88 = OpLabel |
| OpBranch %86 |
| %86 = OpLabel |
| %89 = OpPhi %v3float %90 %87 %80 %88 |
| %91 = OpCompositeConstruct %v4float %89 %83 |
| OpReturnValue %91 |
| OpFunctionEnd |
| %tint_GammaCorrection = OpFunction %v3float None %108 |
| %v = OpFunctionParameter %v3float |
| %params_0 = OpFunctionParameter %tint_GammaTransferParams |
| %109 = OpLabel |
| %110 = OpCompositeExtract %float %params_0 0 |
| %111 = OpCompositeExtract %float %params_0 1 |
| %112 = OpCompositeExtract %float %params_0 2 |
| %113 = OpCompositeExtract %float %params_0 3 |
| %114 = OpCompositeExtract %float %params_0 4 |
| %115 = OpCompositeExtract %float %params_0 5 |
| %116 = OpCompositeExtract %float %params_0 6 |
| %117 = OpCompositeConstruct %v3float %110 %110 %110 |
| %118 = OpCompositeConstruct %v3float %114 %114 %114 |
| %119 = OpExtInst %v3float %43 FAbs %v |
| %120 = OpExtInst %v3float %43 FSign %v |
| %121 = OpFOrdLessThan %v3bool %119 %118 |
| %123 = OpVectorTimesScalar %v3float %119 %113 |
| %124 = OpCompositeConstruct %v3float %116 %116 %116 |
| %125 = OpFAdd %v3float %123 %124 |
| %126 = OpFMul %v3float %120 %125 |
| %127 = OpVectorTimesScalar %v3float %119 %111 |
| %128 = OpCompositeConstruct %v3float %112 %112 %112 |
| %129 = OpFAdd %v3float %127 %128 |
| %130 = OpExtInst %v3float %43 Pow %129 %117 |
| %131 = OpCompositeConstruct %v3float %115 %115 %115 |
| %132 = OpFAdd %v3float %130 %131 |
| %133 = OpFMul %v3float %120 %132 |
| %134 = OpSelect %v3float %121 %126 %133 |
| OpReturnValue %134 |
| OpFunctionEnd |
| %tint_convert_tint_ExternalTextureParams = OpFunction %tint_ExternalTextureParams None %136 |
| %tint_input = OpFunctionParameter %tint_ExternalTextureParams_std140 |
| %137 = OpLabel |
| %138 = OpCompositeExtract %uint %tint_input 0 |
| %139 = OpCompositeExtract %uint %tint_input 1 |
| %140 = OpCompositeExtract %mat3v4float %tint_input 2 |
| %141 = OpCompositeExtract %tint_GammaTransferParams %tint_input 3 |
| %142 = OpCompositeExtract %tint_GammaTransferParams %tint_input 4 |
| %143 = OpCompositeExtract %v3float %tint_input 5 |
| %144 = OpCompositeExtract %v3float %tint_input 6 |
| %145 = OpCompositeExtract %v3float %tint_input 7 |
| %146 = OpCompositeConstruct %mat3v3float %143 %144 %145 |
| %147 = OpCompositeExtract %v2float %tint_input 8 |
| %148 = OpCompositeExtract %v2float %tint_input 9 |
| %149 = OpCompositeExtract %v2float %tint_input 10 |
| %150 = OpCompositeConstruct %mat3v2float %147 %148 %149 |
| %151 = OpCompositeExtract %v2float %tint_input 11 |
| %152 = OpCompositeExtract %v2float %tint_input 12 |
| %153 = OpCompositeExtract %v2float %tint_input 13 |
| %154 = OpCompositeConstruct %mat3v2float %151 %152 %153 |
| %155 = OpCompositeExtract %v2float %tint_input 14 |
| %156 = OpCompositeExtract %v2float %tint_input 15 |
| %157 = OpCompositeExtract %v2float %tint_input 16 |
| %158 = OpCompositeExtract %v2float %tint_input 17 |
| %159 = OpCompositeExtract %v2uint %tint_input 18 |
| %160 = OpCompositeExtract %v2float %tint_input 19 |
| %161 = OpCompositeConstruct %tint_ExternalTextureParams %138 %139 %140 %141 %142 %146 %150 %154 %155 %156 %157 %158 %159 %160 |
| OpReturnValue %161 |
| OpFunctionEnd |
| ; |
| ; compute_main |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 162 |
| ; Schema: 0 |
| OpCapability Shader |
| %43 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpMemberName %prevent_dce_block 0 "inner" |
| OpName %prevent_dce_block "prevent_dce_block" |
| OpName %arg_0_plane0 "arg_0_plane0" |
| OpName %arg_0_plane1 "arg_0_plane1" |
| OpMemberName %tint_ExternalTextureParams_std140 0 "numPlanes" |
| OpMemberName %tint_ExternalTextureParams_std140 1 "doYuvToRgbConversionOnly" |
| OpMemberName %tint_ExternalTextureParams_std140 2 "yuvToRgbConversionMatrix" |
| OpMemberName %tint_GammaTransferParams 0 "G" |
| OpMemberName %tint_GammaTransferParams 1 "A" |
| OpMemberName %tint_GammaTransferParams 2 "B" |
| OpMemberName %tint_GammaTransferParams 3 "C" |
| OpMemberName %tint_GammaTransferParams 4 "D" |
| OpMemberName %tint_GammaTransferParams 5 "E" |
| OpMemberName %tint_GammaTransferParams 6 "F" |
| OpMemberName %tint_GammaTransferParams 7 "padding" |
| OpName %tint_GammaTransferParams "tint_GammaTransferParams" |
| OpMemberName %tint_ExternalTextureParams_std140 3 "gammaDecodeParams" |
| OpMemberName %tint_ExternalTextureParams_std140 4 "gammaEncodeParams" |
| OpMemberName %tint_ExternalTextureParams_std140 5 "gamutConversionMatrix_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 6 "gamutConversionMatrix_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 7 "gamutConversionMatrix_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 8 "sampleTransform_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 9 "sampleTransform_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 10 "sampleTransform_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 11 "loadTransform_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 12 "loadTransform_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 13 "loadTransform_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 14 "samplePlane0RectMin" |
| OpMemberName %tint_ExternalTextureParams_std140 15 "samplePlane0RectMax" |
| OpMemberName %tint_ExternalTextureParams_std140 16 "samplePlane1RectMin" |
| OpMemberName %tint_ExternalTextureParams_std140 17 "samplePlane1RectMax" |
| OpMemberName %tint_ExternalTextureParams_std140 18 "apparentSize" |
| OpMemberName %tint_ExternalTextureParams_std140 19 "plane1CoordFactor" |
| OpName %tint_ExternalTextureParams_std140 "tint_ExternalTextureParams_std140" |
| OpMemberName %arg_0_params_block_std140 0 "inner" |
| OpName %arg_0_params_block_std140 "arg_0_params_block_std140" |
| OpName %textureLoad_1bfdfb "textureLoad_1bfdfb" |
| OpName %arg_1 "arg_1" |
| OpMemberName %tint_ExternalTextureParams 0 "numPlanes" |
| OpMemberName %tint_ExternalTextureParams 1 "doYuvToRgbConversionOnly" |
| OpMemberName %tint_ExternalTextureParams 2 "yuvToRgbConversionMatrix" |
| OpMemberName %tint_ExternalTextureParams 3 "gammaDecodeParams" |
| OpMemberName %tint_ExternalTextureParams 4 "gammaEncodeParams" |
| OpMemberName %tint_ExternalTextureParams 5 "gamutConversionMatrix" |
| OpMemberName %tint_ExternalTextureParams 6 "sampleTransform" |
| OpMemberName %tint_ExternalTextureParams 7 "loadTransform" |
| OpMemberName %tint_ExternalTextureParams 8 "samplePlane0RectMin" |
| OpMemberName %tint_ExternalTextureParams 9 "samplePlane0RectMax" |
| OpMemberName %tint_ExternalTextureParams 10 "samplePlane1RectMin" |
| OpMemberName %tint_ExternalTextureParams 11 "samplePlane1RectMax" |
| OpMemberName %tint_ExternalTextureParams 12 "apparentSize" |
| OpMemberName %tint_ExternalTextureParams 13 "plane1CoordFactor" |
| OpName %tint_ExternalTextureParams "tint_ExternalTextureParams" |
| OpName %res "res" |
| OpName %compute_main "compute_main" |
| OpName %tint_TextureLoadExternal "tint_TextureLoadExternal" |
| OpName %plane_0 "plane_0" |
| OpName %plane_1 "plane_1" |
| OpName %params "params" |
| OpName %coords "coords" |
| OpName %tint_GammaCorrection "tint_GammaCorrection" |
| OpName %v "v" |
| OpName %params_0 "params" |
| OpName %tint_convert_tint_ExternalTextureParams "tint_convert_tint_ExternalTextureParams" |
| OpName %tint_input "tint_input" |
| OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| OpDecorate %prevent_dce_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| OpDecorate %arg_0_plane0 DescriptorSet 1 |
| OpDecorate %arg_0_plane0 Binding 0 |
| OpDecorate %arg_0_plane1 DescriptorSet 1 |
| OpDecorate %arg_0_plane1 Binding 1 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 0 Offset 0 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 1 Offset 4 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 Offset 16 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 ColMajor |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 MatrixStride 16 |
| OpMemberDecorate %tint_GammaTransferParams 0 Offset 0 |
| OpMemberDecorate %tint_GammaTransferParams 1 Offset 4 |
| OpMemberDecorate %tint_GammaTransferParams 2 Offset 8 |
| OpMemberDecorate %tint_GammaTransferParams 3 Offset 12 |
| OpMemberDecorate %tint_GammaTransferParams 4 Offset 16 |
| OpMemberDecorate %tint_GammaTransferParams 5 Offset 20 |
| OpMemberDecorate %tint_GammaTransferParams 6 Offset 24 |
| OpMemberDecorate %tint_GammaTransferParams 7 Offset 28 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 3 Offset 64 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 4 Offset 96 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 5 Offset 128 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 6 Offset 144 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 7 Offset 160 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 8 Offset 176 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 9 Offset 184 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 10 Offset 192 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 11 Offset 200 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 12 Offset 208 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 13 Offset 216 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 14 Offset 224 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 15 Offset 232 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 16 Offset 240 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 17 Offset 248 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 18 Offset 256 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 19 Offset 264 |
| OpMemberDecorate %arg_0_params_block_std140 0 Offset 0 |
| OpDecorate %arg_0_params_block_std140 Block |
| OpDecorate %10 DescriptorSet 1 |
| OpDecorate %10 Binding 2 |
| OpDecorate %10 NonWritable |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %prevent_dce_block = OpTypeStruct %v4float |
| %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| %1 = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| %8 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| %arg_0_plane0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| %arg_0_plane1 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| %uint = OpTypeInt 32 0 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %tint_GammaTransferParams = OpTypeStruct %float %float %float %float %float %float %float %uint |
| %v3float = OpTypeVector %float 3 |
| %v2float = OpTypeVector %float 2 |
| %v2uint = OpTypeVector %uint 2 |
| %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 |
| %arg_0_params_block_std140 = OpTypeStruct %tint_ExternalTextureParams_std140 |
| %_ptr_Uniform_arg_0_params_block_std140 = OpTypePointer Uniform %arg_0_params_block_std140 |
| %10 = OpVariable %_ptr_Uniform_arg_0_params_block_std140 Uniform |
| %21 = OpTypeFunction %v4float |
| %_ptr_Function_v2uint = OpTypePointer Function %v2uint |
| %uint_1 = OpConstant %uint 1 |
| %25 = OpConstantComposite %v2uint %uint_1 %uint_1 |
| %_ptr_Uniform_tint_ExternalTextureParams_std140 = OpTypePointer Uniform %tint_ExternalTextureParams_std140 |
| %uint_0 = OpConstant %uint 0 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %tint_ExternalTextureParams = OpTypeStruct %uint %uint %mat3v4float %tint_GammaTransferParams %tint_GammaTransferParams %mat3v3float %mat3v2float %mat3v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %void = OpTypeVoid |
| %51 = OpTypeFunction %void |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %60 = OpTypeFunction %v4float %8 %8 %tint_ExternalTextureParams %v2uint |
| %float_1 = OpConstant %float 1 |
| %bool = OpTypeBool |
| %108 = OpTypeFunction %v3float %v3float %tint_GammaTransferParams |
| %v3bool = OpTypeVector %bool 3 |
| %136 = OpTypeFunction %tint_ExternalTextureParams %tint_ExternalTextureParams_std140 |
| %textureLoad_1bfdfb = OpFunction %v4float None %21 |
| %22 = OpLabel |
| %arg_1 = OpVariable %_ptr_Function_v2uint Function |
| %res = OpVariable %_ptr_Function_v4float Function |
| OpStore %arg_1 %25 |
| %27 = OpLoad %8 %arg_0_plane0 None |
| %28 = OpLoad %8 %arg_0_plane1 None |
| %29 = OpAccessChain %_ptr_Uniform_tint_ExternalTextureParams_std140 %10 %uint_0 |
| %32 = OpLoad %tint_ExternalTextureParams_std140 %29 None |
| %33 = OpFunctionCall %tint_ExternalTextureParams %tint_convert_tint_ExternalTextureParams %32 |
| %38 = OpLoad %v2uint %arg_1 None |
| %39 = OpCompositeExtract %v2uint %33 12 |
| %40 = OpIAdd %v2uint %39 %25 |
| %41 = OpISub %v2uint %40 %25 |
| %42 = OpExtInst %v2uint %43 UMin %38 %41 |
| %44 = OpFunctionCall %v4float %tint_TextureLoadExternal %27 %28 %33 %42 |
| OpStore %res %44 |
| %48 = OpLoad %v4float %res None |
| OpReturnValue %48 |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %51 |
| %52 = OpLabel |
| %53 = OpFunctionCall %v4float %textureLoad_1bfdfb |
| %54 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 |
| OpStore %54 %53 None |
| OpReturn |
| OpFunctionEnd |
| %tint_TextureLoadExternal = OpFunction %v4float None %60 |
| %plane_0 = OpFunctionParameter %8 |
| %plane_1 = OpFunctionParameter %8 |
| %params = OpFunctionParameter %tint_ExternalTextureParams |
| %coords = OpFunctionParameter %v2uint |
| %61 = OpLabel |
| %62 = OpCompositeExtract %uint %params 1 |
| %63 = OpCompositeExtract %mat3v4float %params 2 |
| %64 = OpCompositeExtract %mat3v2float %params 7 |
| %65 = OpCompositeExtract %v2uint %params 12 |
| %66 = OpCompositeExtract %v2float %params 13 |
| %67 = OpExtInst %v2uint %43 UMin %coords %65 |
| %68 = OpConvertUToF %v2float %67 |
| %69 = OpCompositeConstruct %v3float %68 %float_1 |
| %71 = OpMatrixTimesVector %v2float %64 %69 |
| %72 = OpExtInst %v2float %43 RoundEven %71 |
| %73 = OpConvertFToU %v2uint %72 |
| %74 = OpCompositeExtract %uint %params 0 |
| %75 = OpIEqual %bool %74 %uint_1 |
| OpSelectionMerge %77 None |
| OpBranchConditional %75 %78 %79 |
| %78 = OpLabel |
| %92 = OpImageFetch %v4float %plane_0 %73 Lod %uint_0 |
| %81 = OpVectorShuffle %v3float %92 %92 0 1 2 |
| %84 = OpCompositeExtract %float %92 3 |
| OpBranch %77 |
| %79 = OpLabel |
| %93 = OpImageFetch %v4float %plane_0 %73 Lod %uint_0 |
| %94 = OpCompositeExtract %float %93 0 |
| %95 = OpFMul %v2float %72 %66 |
| %96 = OpConvertFToU %v2uint %95 |
| %97 = OpImageFetch %v4float %plane_1 %96 Lod %uint_0 |
| %98 = OpVectorShuffle %v2float %97 %97 0 1 |
| %99 = OpCompositeConstruct %v4float %94 %98 %float_1 |
| %82 = OpVectorTimesMatrix %v3float %99 %63 |
| OpBranch %77 |
| %77 = OpLabel |
| %80 = OpPhi %v3float %81 %78 %82 %79 |
| %83 = OpPhi %float %84 %78 %float_1 %79 |
| %85 = OpIEqual %bool %62 %uint_0 |
| OpSelectionMerge %86 None |
| OpBranchConditional %85 %87 %88 |
| %87 = OpLabel |
| %100 = OpCompositeExtract %tint_GammaTransferParams %params 3 |
| %101 = OpCompositeExtract %tint_GammaTransferParams %params 4 |
| %102 = OpCompositeExtract %mat3v3float %params 5 |
| %103 = OpFunctionCall %v3float %tint_GammaCorrection %80 %100 |
| %105 = OpMatrixTimesVector %v3float %102 %103 |
| %90 = OpFunctionCall %v3float %tint_GammaCorrection %105 %101 |
| OpBranch %86 |
| %88 = OpLabel |
| OpBranch %86 |
| %86 = OpLabel |
| %89 = OpPhi %v3float %90 %87 %80 %88 |
| %91 = OpCompositeConstruct %v4float %89 %83 |
| OpReturnValue %91 |
| OpFunctionEnd |
| %tint_GammaCorrection = OpFunction %v3float None %108 |
| %v = OpFunctionParameter %v3float |
| %params_0 = OpFunctionParameter %tint_GammaTransferParams |
| %109 = OpLabel |
| %110 = OpCompositeExtract %float %params_0 0 |
| %111 = OpCompositeExtract %float %params_0 1 |
| %112 = OpCompositeExtract %float %params_0 2 |
| %113 = OpCompositeExtract %float %params_0 3 |
| %114 = OpCompositeExtract %float %params_0 4 |
| %115 = OpCompositeExtract %float %params_0 5 |
| %116 = OpCompositeExtract %float %params_0 6 |
| %117 = OpCompositeConstruct %v3float %110 %110 %110 |
| %118 = OpCompositeConstruct %v3float %114 %114 %114 |
| %119 = OpExtInst %v3float %43 FAbs %v |
| %120 = OpExtInst %v3float %43 FSign %v |
| %121 = OpFOrdLessThan %v3bool %119 %118 |
| %123 = OpVectorTimesScalar %v3float %119 %113 |
| %124 = OpCompositeConstruct %v3float %116 %116 %116 |
| %125 = OpFAdd %v3float %123 %124 |
| %126 = OpFMul %v3float %120 %125 |
| %127 = OpVectorTimesScalar %v3float %119 %111 |
| %128 = OpCompositeConstruct %v3float %112 %112 %112 |
| %129 = OpFAdd %v3float %127 %128 |
| %130 = OpExtInst %v3float %43 Pow %129 %117 |
| %131 = OpCompositeConstruct %v3float %115 %115 %115 |
| %132 = OpFAdd %v3float %130 %131 |
| %133 = OpFMul %v3float %120 %132 |
| %134 = OpSelect %v3float %121 %126 %133 |
| OpReturnValue %134 |
| OpFunctionEnd |
| %tint_convert_tint_ExternalTextureParams = OpFunction %tint_ExternalTextureParams None %136 |
| %tint_input = OpFunctionParameter %tint_ExternalTextureParams_std140 |
| %137 = OpLabel |
| %138 = OpCompositeExtract %uint %tint_input 0 |
| %139 = OpCompositeExtract %uint %tint_input 1 |
| %140 = OpCompositeExtract %mat3v4float %tint_input 2 |
| %141 = OpCompositeExtract %tint_GammaTransferParams %tint_input 3 |
| %142 = OpCompositeExtract %tint_GammaTransferParams %tint_input 4 |
| %143 = OpCompositeExtract %v3float %tint_input 5 |
| %144 = OpCompositeExtract %v3float %tint_input 6 |
| %145 = OpCompositeExtract %v3float %tint_input 7 |
| %146 = OpCompositeConstruct %mat3v3float %143 %144 %145 |
| %147 = OpCompositeExtract %v2float %tint_input 8 |
| %148 = OpCompositeExtract %v2float %tint_input 9 |
| %149 = OpCompositeExtract %v2float %tint_input 10 |
| %150 = OpCompositeConstruct %mat3v2float %147 %148 %149 |
| %151 = OpCompositeExtract %v2float %tint_input 11 |
| %152 = OpCompositeExtract %v2float %tint_input 12 |
| %153 = OpCompositeExtract %v2float %tint_input 13 |
| %154 = OpCompositeConstruct %mat3v2float %151 %152 %153 |
| %155 = OpCompositeExtract %v2float %tint_input 14 |
| %156 = OpCompositeExtract %v2float %tint_input 15 |
| %157 = OpCompositeExtract %v2float %tint_input 16 |
| %158 = OpCompositeExtract %v2float %tint_input 17 |
| %159 = OpCompositeExtract %v2uint %tint_input 18 |
| %160 = OpCompositeExtract %v2float %tint_input 19 |
| %161 = OpCompositeConstruct %tint_ExternalTextureParams %138 %139 %140 %141 %142 %146 %150 %154 %155 %156 %157 %158 %159 %160 |
| OpReturnValue %161 |
| OpFunctionEnd |
| ; |
| ; vertex_main |
| ; |
| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 176 |
| ; Schema: 0 |
| OpCapability Shader |
| %45 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output |
| OpName %arg_0_plane0 "arg_0_plane0" |
| OpName %arg_0_plane1 "arg_0_plane1" |
| OpMemberName %tint_ExternalTextureParams_std140 0 "numPlanes" |
| OpMemberName %tint_ExternalTextureParams_std140 1 "doYuvToRgbConversionOnly" |
| OpMemberName %tint_ExternalTextureParams_std140 2 "yuvToRgbConversionMatrix" |
| OpMemberName %tint_GammaTransferParams 0 "G" |
| OpMemberName %tint_GammaTransferParams 1 "A" |
| OpMemberName %tint_GammaTransferParams 2 "B" |
| OpMemberName %tint_GammaTransferParams 3 "C" |
| OpMemberName %tint_GammaTransferParams 4 "D" |
| OpMemberName %tint_GammaTransferParams 5 "E" |
| OpMemberName %tint_GammaTransferParams 6 "F" |
| OpMemberName %tint_GammaTransferParams 7 "padding" |
| OpName %tint_GammaTransferParams "tint_GammaTransferParams" |
| OpMemberName %tint_ExternalTextureParams_std140 3 "gammaDecodeParams" |
| OpMemberName %tint_ExternalTextureParams_std140 4 "gammaEncodeParams" |
| OpMemberName %tint_ExternalTextureParams_std140 5 "gamutConversionMatrix_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 6 "gamutConversionMatrix_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 7 "gamutConversionMatrix_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 8 "sampleTransform_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 9 "sampleTransform_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 10 "sampleTransform_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 11 "loadTransform_col0" |
| OpMemberName %tint_ExternalTextureParams_std140 12 "loadTransform_col1" |
| OpMemberName %tint_ExternalTextureParams_std140 13 "loadTransform_col2" |
| OpMemberName %tint_ExternalTextureParams_std140 14 "samplePlane0RectMin" |
| OpMemberName %tint_ExternalTextureParams_std140 15 "samplePlane0RectMax" |
| OpMemberName %tint_ExternalTextureParams_std140 16 "samplePlane1RectMin" |
| OpMemberName %tint_ExternalTextureParams_std140 17 "samplePlane1RectMax" |
| OpMemberName %tint_ExternalTextureParams_std140 18 "apparentSize" |
| OpMemberName %tint_ExternalTextureParams_std140 19 "plane1CoordFactor" |
| OpName %tint_ExternalTextureParams_std140 "tint_ExternalTextureParams_std140" |
| OpMemberName %arg_0_params_block_std140 0 "inner" |
| OpName %arg_0_params_block_std140 "arg_0_params_block_std140" |
| OpName %vertex_main_position_Output "vertex_main_position_Output" |
| OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| OpName %textureLoad_1bfdfb "textureLoad_1bfdfb" |
| OpName %arg_1 "arg_1" |
| OpMemberName %tint_ExternalTextureParams 0 "numPlanes" |
| OpMemberName %tint_ExternalTextureParams 1 "doYuvToRgbConversionOnly" |
| OpMemberName %tint_ExternalTextureParams 2 "yuvToRgbConversionMatrix" |
| OpMemberName %tint_ExternalTextureParams 3 "gammaDecodeParams" |
| OpMemberName %tint_ExternalTextureParams 4 "gammaEncodeParams" |
| OpMemberName %tint_ExternalTextureParams 5 "gamutConversionMatrix" |
| OpMemberName %tint_ExternalTextureParams 6 "sampleTransform" |
| OpMemberName %tint_ExternalTextureParams 7 "loadTransform" |
| OpMemberName %tint_ExternalTextureParams 8 "samplePlane0RectMin" |
| OpMemberName %tint_ExternalTextureParams 9 "samplePlane0RectMax" |
| OpMemberName %tint_ExternalTextureParams 10 "samplePlane1RectMin" |
| OpMemberName %tint_ExternalTextureParams 11 "samplePlane1RectMax" |
| OpMemberName %tint_ExternalTextureParams 12 "apparentSize" |
| OpMemberName %tint_ExternalTextureParams 13 "plane1CoordFactor" |
| OpName %tint_ExternalTextureParams "tint_ExternalTextureParams" |
| OpName %res "res" |
| OpName %vertex_main_inner "vertex_main_inner" |
| OpMemberName %VertexOutput 0 "pos" |
| OpMemberName %VertexOutput 1 "prevent_dce" |
| OpName %VertexOutput "VertexOutput" |
| OpName %out "out" |
| OpName %tint_TextureLoadExternal "tint_TextureLoadExternal" |
| OpName %plane_0 "plane_0" |
| OpName %plane_1 "plane_1" |
| OpName %params "params" |
| OpName %coords "coords" |
| OpName %tint_GammaCorrection "tint_GammaCorrection" |
| OpName %v "v" |
| OpName %params_0 "params" |
| OpName %vertex_main "vertex_main" |
| OpName %tint_convert_tint_ExternalTextureParams "tint_convert_tint_ExternalTextureParams" |
| OpName %tint_input "tint_input" |
| OpDecorate %arg_0_plane0 DescriptorSet 1 |
| OpDecorate %arg_0_plane0 Binding 0 |
| OpDecorate %arg_0_plane1 DescriptorSet 1 |
| OpDecorate %arg_0_plane1 Binding 1 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 0 Offset 0 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 1 Offset 4 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 Offset 16 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 ColMajor |
| OpMemberDecorate %tint_ExternalTextureParams_std140 2 MatrixStride 16 |
| OpMemberDecorate %tint_GammaTransferParams 0 Offset 0 |
| OpMemberDecorate %tint_GammaTransferParams 1 Offset 4 |
| OpMemberDecorate %tint_GammaTransferParams 2 Offset 8 |
| OpMemberDecorate %tint_GammaTransferParams 3 Offset 12 |
| OpMemberDecorate %tint_GammaTransferParams 4 Offset 16 |
| OpMemberDecorate %tint_GammaTransferParams 5 Offset 20 |
| OpMemberDecorate %tint_GammaTransferParams 6 Offset 24 |
| OpMemberDecorate %tint_GammaTransferParams 7 Offset 28 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 3 Offset 64 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 4 Offset 96 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 5 Offset 128 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 6 Offset 144 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 7 Offset 160 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 8 Offset 176 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 9 Offset 184 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 10 Offset 192 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 11 Offset 200 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 12 Offset 208 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 13 Offset 216 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 14 Offset 224 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 15 Offset 232 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 16 Offset 240 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 17 Offset 248 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 18 Offset 256 |
| OpMemberDecorate %tint_ExternalTextureParams_std140 19 Offset 264 |
| OpMemberDecorate %arg_0_params_block_std140 0 Offset 0 |
| OpDecorate %arg_0_params_block_std140 Block |
| OpDecorate %6 DescriptorSet 1 |
| OpDecorate %6 Binding 2 |
| OpDecorate %6 NonWritable |
| OpDecorate %vertex_main_position_Output BuiltIn Position |
| OpDecorate %vertex_main_loc0_Output Location 0 |
| OpDecorate %vertex_main_loc0_Output Flat |
| OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| %float = OpTypeFloat 32 |
| %3 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| %_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3 |
| %arg_0_plane0 = OpVariable %_ptr_UniformConstant_3 UniformConstant |
| %arg_0_plane1 = OpVariable %_ptr_UniformConstant_3 UniformConstant |
| %uint = OpTypeInt 32 0 |
| %v4float = OpTypeVector %float 4 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %tint_GammaTransferParams = OpTypeStruct %float %float %float %float %float %float %float %uint |
| %v3float = OpTypeVector %float 3 |
| %v2float = OpTypeVector %float 2 |
| %v2uint = OpTypeVector %uint 2 |
| %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 |
| %arg_0_params_block_std140 = OpTypeStruct %tint_ExternalTextureParams_std140 |
| %_ptr_Uniform_arg_0_params_block_std140 = OpTypePointer Uniform %arg_0_params_block_std140 |
| %6 = OpVariable %_ptr_Uniform_arg_0_params_block_std140 Uniform |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %vertex_main_loc0_Output = OpVariable %_ptr_Output_v4float Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %23 = OpTypeFunction %v4float |
| %_ptr_Function_v2uint = OpTypePointer Function %v2uint |
| %uint_1 = OpConstant %uint 1 |
| %27 = OpConstantComposite %v2uint %uint_1 %uint_1 |
| %_ptr_Uniform_tint_ExternalTextureParams_std140 = OpTypePointer Uniform %tint_ExternalTextureParams_std140 |
| %uint_0 = OpConstant %uint 0 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %tint_ExternalTextureParams = OpTypeStruct %uint %uint %mat3v4float %tint_GammaTransferParams %tint_GammaTransferParams %mat3v3float %mat3v2float %mat3v2float %v2float %v2float %v2float %v2float %v2uint %v2float |
| %_ptr_Function_v4float = OpTypePointer Function %v4float |
| %VertexOutput = OpTypeStruct %v4float %v4float |
| %53 = OpTypeFunction %VertexOutput |
| %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| %57 = OpConstantNull %VertexOutput |
| %59 = OpConstantNull %v4float |
| %67 = OpTypeFunction %v4float %3 %3 %tint_ExternalTextureParams %v2uint |
| %float_1 = OpConstant %float 1 |
| %bool = OpTypeBool |
| %115 = OpTypeFunction %v3float %v3float %tint_GammaTransferParams |
| %v3bool = OpTypeVector %bool 3 |
| %void = OpTypeVoid |
| %144 = OpTypeFunction %void |
| %150 = OpTypeFunction %tint_ExternalTextureParams %tint_ExternalTextureParams_std140 |
| %textureLoad_1bfdfb = OpFunction %v4float None %23 |
| %24 = OpLabel |
| %arg_1 = OpVariable %_ptr_Function_v2uint Function |
| %res = OpVariable %_ptr_Function_v4float Function |
| OpStore %arg_1 %27 |
| %29 = OpLoad %3 %arg_0_plane0 None |
| %30 = OpLoad %3 %arg_0_plane1 None |
| %31 = OpAccessChain %_ptr_Uniform_tint_ExternalTextureParams_std140 %6 %uint_0 |
| %34 = OpLoad %tint_ExternalTextureParams_std140 %31 None |
| %35 = OpFunctionCall %tint_ExternalTextureParams %tint_convert_tint_ExternalTextureParams %34 |
| %40 = OpLoad %v2uint %arg_1 None |
| %41 = OpCompositeExtract %v2uint %35 12 |
| %42 = OpIAdd %v2uint %41 %27 |
| %43 = OpISub %v2uint %42 %27 |
| %44 = OpExtInst %v2uint %45 UMin %40 %43 |
| %46 = OpFunctionCall %v4float %tint_TextureLoadExternal %29 %30 %35 %44 |
| OpStore %res %46 |
| %50 = OpLoad %v4float %res None |
| OpReturnValue %50 |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %VertexOutput None %53 |
| %54 = OpLabel |
| %out = OpVariable %_ptr_Function_VertexOutput Function %57 |
| %58 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| OpStore %58 %59 None |
| %60 = OpAccessChain %_ptr_Function_v4float %out %uint_1 |
| %61 = OpFunctionCall %v4float %textureLoad_1bfdfb |
| OpStore %60 %61 None |
| %62 = OpLoad %VertexOutput %out None |
| OpReturnValue %62 |
| OpFunctionEnd |
| %tint_TextureLoadExternal = OpFunction %v4float None %67 |
| %plane_0 = OpFunctionParameter %3 |
| %plane_1 = OpFunctionParameter %3 |
| %params = OpFunctionParameter %tint_ExternalTextureParams |
| %coords = OpFunctionParameter %v2uint |
| %68 = OpLabel |
| %69 = OpCompositeExtract %uint %params 1 |
| %70 = OpCompositeExtract %mat3v4float %params 2 |
| %71 = OpCompositeExtract %mat3v2float %params 7 |
| %72 = OpCompositeExtract %v2uint %params 12 |
| %73 = OpCompositeExtract %v2float %params 13 |
| %74 = OpExtInst %v2uint %45 UMin %coords %72 |
| %75 = OpConvertUToF %v2float %74 |
| %76 = OpCompositeConstruct %v3float %75 %float_1 |
| %78 = OpMatrixTimesVector %v2float %71 %76 |
| %79 = OpExtInst %v2float %45 RoundEven %78 |
| %80 = OpConvertFToU %v2uint %79 |
| %81 = OpCompositeExtract %uint %params 0 |
| %82 = OpIEqual %bool %81 %uint_1 |
| OpSelectionMerge %84 None |
| OpBranchConditional %82 %85 %86 |
| %85 = OpLabel |
| %99 = OpImageFetch %v4float %plane_0 %80 Lod %uint_0 |
| %88 = OpVectorShuffle %v3float %99 %99 0 1 2 |
| %91 = OpCompositeExtract %float %99 3 |
| OpBranch %84 |
| %86 = OpLabel |
| %100 = OpImageFetch %v4float %plane_0 %80 Lod %uint_0 |
| %101 = OpCompositeExtract %float %100 0 |
| %102 = OpFMul %v2float %79 %73 |
| %103 = OpConvertFToU %v2uint %102 |
| %104 = OpImageFetch %v4float %plane_1 %103 Lod %uint_0 |
| %105 = OpVectorShuffle %v2float %104 %104 0 1 |
| %106 = OpCompositeConstruct %v4float %101 %105 %float_1 |
| %89 = OpVectorTimesMatrix %v3float %106 %70 |
| OpBranch %84 |
| %84 = OpLabel |
| %87 = OpPhi %v3float %88 %85 %89 %86 |
| %90 = OpPhi %float %91 %85 %float_1 %86 |
| %92 = OpIEqual %bool %69 %uint_0 |
| OpSelectionMerge %93 None |
| OpBranchConditional %92 %94 %95 |
| %94 = OpLabel |
| %107 = OpCompositeExtract %tint_GammaTransferParams %params 3 |
| %108 = OpCompositeExtract %tint_GammaTransferParams %params 4 |
| %109 = OpCompositeExtract %mat3v3float %params 5 |
| %110 = OpFunctionCall %v3float %tint_GammaCorrection %87 %107 |
| %112 = OpMatrixTimesVector %v3float %109 %110 |
| %97 = OpFunctionCall %v3float %tint_GammaCorrection %112 %108 |
| OpBranch %93 |
| %95 = OpLabel |
| OpBranch %93 |
| %93 = OpLabel |
| %96 = OpPhi %v3float %97 %94 %87 %95 |
| %98 = OpCompositeConstruct %v4float %96 %90 |
| OpReturnValue %98 |
| OpFunctionEnd |
| %tint_GammaCorrection = OpFunction %v3float None %115 |
| %v = OpFunctionParameter %v3float |
| %params_0 = OpFunctionParameter %tint_GammaTransferParams |
| %116 = OpLabel |
| %117 = OpCompositeExtract %float %params_0 0 |
| %118 = OpCompositeExtract %float %params_0 1 |
| %119 = OpCompositeExtract %float %params_0 2 |
| %120 = OpCompositeExtract %float %params_0 3 |
| %121 = OpCompositeExtract %float %params_0 4 |
| %122 = OpCompositeExtract %float %params_0 5 |
| %123 = OpCompositeExtract %float %params_0 6 |
| %124 = OpCompositeConstruct %v3float %117 %117 %117 |
| %125 = OpCompositeConstruct %v3float %121 %121 %121 |
| %126 = OpExtInst %v3float %45 FAbs %v |
| %127 = OpExtInst %v3float %45 FSign %v |
| %128 = OpFOrdLessThan %v3bool %126 %125 |
| %130 = OpVectorTimesScalar %v3float %126 %120 |
| %131 = OpCompositeConstruct %v3float %123 %123 %123 |
| %132 = OpFAdd %v3float %130 %131 |
| %133 = OpFMul %v3float %127 %132 |
| %134 = OpVectorTimesScalar %v3float %126 %118 |
| %135 = OpCompositeConstruct %v3float %119 %119 %119 |
| %136 = OpFAdd %v3float %134 %135 |
| %137 = OpExtInst %v3float %45 Pow %136 %124 |
| %138 = OpCompositeConstruct %v3float %122 %122 %122 |
| %139 = OpFAdd %v3float %137 %138 |
| %140 = OpFMul %v3float %127 %139 |
| %141 = OpSelect %v3float %128 %133 %140 |
| OpReturnValue %141 |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %144 |
| %145 = OpLabel |
| %146 = OpFunctionCall %VertexOutput %vertex_main_inner |
| %147 = OpCompositeExtract %v4float %146 0 |
| OpStore %vertex_main_position_Output %147 None |
| %148 = OpCompositeExtract %v4float %146 1 |
| OpStore %vertex_main_loc0_Output %148 None |
| OpStore %vertex_main___point_size_Output %float_1 None |
| OpReturn |
| OpFunctionEnd |
| %tint_convert_tint_ExternalTextureParams = OpFunction %tint_ExternalTextureParams None %150 |
| %tint_input = OpFunctionParameter %tint_ExternalTextureParams_std140 |
| %151 = OpLabel |
| %152 = OpCompositeExtract %uint %tint_input 0 |
| %153 = OpCompositeExtract %uint %tint_input 1 |
| %154 = OpCompositeExtract %mat3v4float %tint_input 2 |
| %155 = OpCompositeExtract %tint_GammaTransferParams %tint_input 3 |
| %156 = OpCompositeExtract %tint_GammaTransferParams %tint_input 4 |
| %157 = OpCompositeExtract %v3float %tint_input 5 |
| %158 = OpCompositeExtract %v3float %tint_input 6 |
| %159 = OpCompositeExtract %v3float %tint_input 7 |
| %160 = OpCompositeConstruct %mat3v3float %157 %158 %159 |
| %161 = OpCompositeExtract %v2float %tint_input 8 |
| %162 = OpCompositeExtract %v2float %tint_input 9 |
| %163 = OpCompositeExtract %v2float %tint_input 10 |
| %164 = OpCompositeConstruct %mat3v2float %161 %162 %163 |
| %165 = OpCompositeExtract %v2float %tint_input 11 |
| %166 = OpCompositeExtract %v2float %tint_input 12 |
| %167 = OpCompositeExtract %v2float %tint_input 13 |
| %168 = OpCompositeConstruct %mat3v2float %165 %166 %167 |
| %169 = OpCompositeExtract %v2float %tint_input 14 |
| %170 = OpCompositeExtract %v2float %tint_input 15 |
| %171 = OpCompositeExtract %v2float %tint_input 16 |
| %172 = OpCompositeExtract %v2float %tint_input 17 |
| %173 = OpCompositeExtract %v2uint %tint_input 18 |
| %174 = OpCompositeExtract %v2float %tint_input 19 |
| %175 = OpCompositeConstruct %tint_ExternalTextureParams %152 %153 %154 %155 %156 %160 %164 %168 %169 %170 %171 %172 %173 %174 |
| OpReturnValue %175 |
| OpFunctionEnd |