| OpCapability Shader |
| %1 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %sk_FragColor |
| OpExecutionMode %main OriginUpperLeft |
| |
| ; Debug Information |
| OpName %_kGuardedDivideEpsilon "$kGuardedDivideEpsilon" ; id %5 |
| OpName %sk_FragColor "sk_FragColor" ; id %13 |
| OpName %_UniformBuffer "_UniformBuffer" ; id %17 |
| OpMemberName %_UniformBuffer 0 "src" |
| OpMemberName %_UniformBuffer 1 "dst" |
| OpName %guarded_divide_Qhhh "guarded_divide_Qhhh" ; id %2 |
| OpName %color_burn_component_Qhh2h2 "color_burn_component_Qhh2h2" ; id %3 |
| OpName %dyTerm "dyTerm" ; id %35 |
| OpName %delta "delta" ; id %48 |
| OpName %main "main" ; id %4 |
| |
| ; Annotations |
| OpDecorate %guarded_divide_Qhhh RelaxedPrecision |
| OpDecorate %color_burn_component_Qhh2h2 RelaxedPrecision |
| OpDecorate %_kGuardedDivideEpsilon RelaxedPrecision |
| OpDecorate %sk_FragColor RelaxedPrecision |
| OpDecorate %sk_FragColor Location 0 |
| OpDecorate %sk_FragColor Index 0 |
| OpMemberDecorate %_UniformBuffer 0 Offset 0 |
| OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision |
| OpMemberDecorate %_UniformBuffer 1 Offset 16 |
| OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision |
| OpDecorate %_UniformBuffer Block |
| OpDecorate %16 Binding 0 |
| OpDecorate %16 DescriptorSet 0 |
| OpDecorate %21 RelaxedPrecision |
| OpDecorate %22 RelaxedPrecision |
| OpDecorate %24 RelaxedPrecision |
| OpDecorate %25 RelaxedPrecision |
| OpDecorate %26 RelaxedPrecision |
| OpDecorate %27 RelaxedPrecision |
| OpDecorate %28 RelaxedPrecision |
| OpDecorate %32 RelaxedPrecision |
| OpDecorate %33 RelaxedPrecision |
| OpDecorate %dyTerm RelaxedPrecision |
| OpDecorate %36 RelaxedPrecision |
| OpDecorate %37 RelaxedPrecision |
| OpDecorate %38 RelaxedPrecision |
| OpDecorate %39 RelaxedPrecision |
| OpDecorate %45 RelaxedPrecision |
| OpDecorate %46 RelaxedPrecision |
| OpDecorate %47 RelaxedPrecision |
| OpDecorate %delta RelaxedPrecision |
| OpDecorate %49 RelaxedPrecision |
| OpDecorate %50 RelaxedPrecision |
| OpDecorate %51 RelaxedPrecision |
| OpDecorate %58 RelaxedPrecision |
| OpDecorate %59 RelaxedPrecision |
| OpDecorate %60 RelaxedPrecision |
| OpDecorate %61 RelaxedPrecision |
| OpDecorate %62 RelaxedPrecision |
| OpDecorate %63 RelaxedPrecision |
| OpDecorate %64 RelaxedPrecision |
| OpDecorate %65 RelaxedPrecision |
| OpDecorate %66 RelaxedPrecision |
| OpDecorate %67 RelaxedPrecision |
| OpDecorate %68 RelaxedPrecision |
| OpDecorate %69 RelaxedPrecision |
| OpDecorate %70 RelaxedPrecision |
| OpDecorate %72 RelaxedPrecision |
| OpDecorate %73 RelaxedPrecision |
| OpDecorate %76 RelaxedPrecision |
| OpDecorate %77 RelaxedPrecision |
| OpDecorate %78 RelaxedPrecision |
| OpDecorate %79 RelaxedPrecision |
| OpDecorate %80 RelaxedPrecision |
| OpDecorate %81 RelaxedPrecision |
| OpDecorate %82 RelaxedPrecision |
| OpDecorate %84 RelaxedPrecision |
| OpDecorate %85 RelaxedPrecision |
| OpDecorate %86 RelaxedPrecision |
| OpDecorate %87 RelaxedPrecision |
| OpDecorate %88 RelaxedPrecision |
| OpDecorate %89 RelaxedPrecision |
| OpDecorate %90 RelaxedPrecision |
| OpDecorate %91 RelaxedPrecision |
| OpDecorate %92 RelaxedPrecision |
| OpDecorate %93 RelaxedPrecision |
| OpDecorate %94 RelaxedPrecision |
| OpDecorate %95 RelaxedPrecision |
| OpDecorate %103 RelaxedPrecision |
| OpDecorate %104 RelaxedPrecision |
| OpDecorate %108 RelaxedPrecision |
| OpDecorate %109 RelaxedPrecision |
| OpDecorate %113 RelaxedPrecision |
| OpDecorate %114 RelaxedPrecision |
| OpDecorate %117 RelaxedPrecision |
| OpDecorate %118 RelaxedPrecision |
| OpDecorate %122 RelaxedPrecision |
| OpDecorate %123 RelaxedPrecision |
| OpDecorate %126 RelaxedPrecision |
| OpDecorate %127 RelaxedPrecision |
| OpDecorate %131 RelaxedPrecision |
| OpDecorate %132 RelaxedPrecision |
| OpDecorate %134 RelaxedPrecision |
| OpDecorate %135 RelaxedPrecision |
| OpDecorate %136 RelaxedPrecision |
| OpDecorate %138 RelaxedPrecision |
| OpDecorate %139 RelaxedPrecision |
| OpDecorate %140 RelaxedPrecision |
| OpDecorate %141 RelaxedPrecision |
| OpDecorate %142 RelaxedPrecision |
| |
| ; Types, variables and constants |
| %float = OpTypeFloat 32 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %_kGuardedDivideEpsilon = OpVariable %_ptr_Private_float Private ; RelaxedPrecision |
| %bool = OpTypeBool |
| %false = OpConstantFalse %bool |
| %float_9_99999994en09 = OpConstant %float 9.99999994e-09 |
| %float_0 = OpConstant %float 0 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %sk_FragColor = OpVariable %_ptr_Output_v4float Output ; RelaxedPrecision, Location 0, Index 0 |
| %_UniformBuffer = OpTypeStruct %v4float %v4float ; Block |
| %_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer |
| %16 = OpVariable %_ptr_Uniform__UniformBuffer Uniform ; Binding 0, DescriptorSet 0 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %20 = OpTypeFunction %float %_ptr_Function_float %_ptr_Function_float |
| %v2float = OpTypeVector %float 2 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %31 = OpTypeFunction %float %_ptr_Function_v2float %_ptr_Function_v2float |
| %float_6_10351562en05 = OpConstant %float 6.10351562e-05 |
| %float_1 = OpConstant %float 1 |
| %void = OpTypeVoid |
| %97 = OpTypeFunction %void |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %int = OpTypeInt 32 1 |
| %int_0 = OpConstant %int 0 |
| %int_1 = OpConstant %int 1 |
| |
| |
| ; Function guarded_divide_Qhhh |
| %guarded_divide_Qhhh = OpFunction %float None %20 ; RelaxedPrecision |
| %21 = OpFunctionParameter %_ptr_Function_float ; RelaxedPrecision |
| %22 = OpFunctionParameter %_ptr_Function_float ; RelaxedPrecision |
| |
| %23 = OpLabel |
| %24 = OpLoad %float %21 ; RelaxedPrecision |
| %25 = OpLoad %float %22 ; RelaxedPrecision |
| %26 = OpLoad %float %_kGuardedDivideEpsilon ; RelaxedPrecision |
| %27 = OpFAdd %float %25 %26 ; RelaxedPrecision |
| %28 = OpFDiv %float %24 %27 ; RelaxedPrecision |
| OpReturnValue %28 |
| OpFunctionEnd |
| |
| |
| ; Function color_burn_component_Qhh2h2 |
| %color_burn_component_Qhh2h2 = OpFunction %float None %31 ; RelaxedPrecision |
| %32 = OpFunctionParameter %_ptr_Function_v2float ; RelaxedPrecision |
| %33 = OpFunctionParameter %_ptr_Function_v2float ; RelaxedPrecision |
| |
| %34 = OpLabel |
| %dyTerm = OpVariable %_ptr_Function_float Function ; RelaxedPrecision |
| %41 = OpVariable %_ptr_Function_float Function |
| %delta = OpVariable %_ptr_Function_float Function ; RelaxedPrecision |
| %54 = OpVariable %_ptr_Function_float Function |
| %71 = OpVariable %_ptr_Function_float Function |
| %74 = OpVariable %_ptr_Function_float Function |
| %36 = OpLoad %v2float %33 ; RelaxedPrecision |
| %37 = OpCompositeExtract %float %36 1 ; RelaxedPrecision |
| %38 = OpLoad %v2float %33 ; RelaxedPrecision |
| %39 = OpCompositeExtract %float %38 0 ; RelaxedPrecision |
| %40 = OpFOrdEqual %bool %37 %39 |
| OpSelectionMerge %44 None |
| OpBranchConditional %40 %42 %43 |
| |
| %42 = OpLabel |
| %45 = OpLoad %v2float %33 ; RelaxedPrecision |
| %46 = OpCompositeExtract %float %45 1 ; RelaxedPrecision |
| OpStore %41 %46 |
| OpBranch %44 |
| |
| %43 = OpLabel |
| OpStore %41 %float_0 |
| OpBranch %44 |
| |
| %44 = OpLabel |
| %47 = OpLoad %float %41 ; RelaxedPrecision |
| OpStore %dyTerm %47 |
| %50 = OpLoad %v2float %32 ; RelaxedPrecision |
| %51 = OpCompositeExtract %float %50 0 ; RelaxedPrecision |
| %49 = OpExtInst %float %1 FAbs %51 ; RelaxedPrecision |
| %53 = OpFOrdGreaterThanEqual %bool %49 %float_6_10351562en05 |
| OpSelectionMerge %57 None |
| OpBranchConditional %53 %55 %56 |
| |
| %55 = OpLabel |
| %58 = OpLoad %v2float %33 ; RelaxedPrecision |
| %59 = OpCompositeExtract %float %58 1 ; RelaxedPrecision |
| %61 = OpLoad %v2float %33 ; RelaxedPrecision |
| %62 = OpCompositeExtract %float %61 1 ; RelaxedPrecision |
| %63 = OpLoad %v2float %33 ; RelaxedPrecision |
| %64 = OpCompositeExtract %float %63 1 ; RelaxedPrecision |
| %65 = OpLoad %v2float %33 ; RelaxedPrecision |
| %66 = OpCompositeExtract %float %65 0 ; RelaxedPrecision |
| %67 = OpFSub %float %64 %66 ; RelaxedPrecision |
| %68 = OpLoad %v2float %32 ; RelaxedPrecision |
| %69 = OpCompositeExtract %float %68 1 ; RelaxedPrecision |
| %70 = OpFMul %float %67 %69 ; RelaxedPrecision |
| OpStore %71 %70 |
| %72 = OpLoad %v2float %32 ; RelaxedPrecision |
| %73 = OpCompositeExtract %float %72 0 ; RelaxedPrecision |
| OpStore %74 %73 |
| %75 = OpFunctionCall %float %guarded_divide_Qhhh %71 %74 |
| %60 = OpExtInst %float %1 FMin %62 %75 ; RelaxedPrecision |
| %76 = OpFSub %float %59 %60 ; RelaxedPrecision |
| OpStore %54 %76 |
| OpBranch %57 |
| |
| %56 = OpLabel |
| OpStore %54 %47 |
| OpBranch %57 |
| |
| %57 = OpLabel |
| %77 = OpLoad %float %54 ; RelaxedPrecision |
| OpStore %delta %77 |
| %78 = OpLoad %v2float %32 ; RelaxedPrecision |
| %79 = OpCompositeExtract %float %78 1 ; RelaxedPrecision |
| %80 = OpFMul %float %77 %79 ; RelaxedPrecision |
| %81 = OpLoad %v2float %32 ; RelaxedPrecision |
| %82 = OpCompositeExtract %float %81 0 ; RelaxedPrecision |
| %84 = OpLoad %v2float %33 ; RelaxedPrecision |
| %85 = OpCompositeExtract %float %84 1 ; RelaxedPrecision |
| %86 = OpFSub %float %float_1 %85 ; RelaxedPrecision |
| %87 = OpFMul %float %82 %86 ; RelaxedPrecision |
| %88 = OpFAdd %float %80 %87 ; RelaxedPrecision |
| %89 = OpLoad %v2float %33 ; RelaxedPrecision |
| %90 = OpCompositeExtract %float %89 0 ; RelaxedPrecision |
| %91 = OpLoad %v2float %32 ; RelaxedPrecision |
| %92 = OpCompositeExtract %float %91 1 ; RelaxedPrecision |
| %93 = OpFSub %float %float_1 %92 ; RelaxedPrecision |
| %94 = OpFMul %float %90 %93 ; RelaxedPrecision |
| %95 = OpFAdd %float %88 %94 ; RelaxedPrecision |
| OpReturnValue %95 |
| OpFunctionEnd |
| |
| |
| ; Function main |
| %main = OpFunction %void None %97 |
| |
| %98 = OpLabel |
| %105 = OpVariable %_ptr_Function_v2float Function |
| %110 = OpVariable %_ptr_Function_v2float Function |
| %115 = OpVariable %_ptr_Function_v2float Function |
| %119 = OpVariable %_ptr_Function_v2float Function |
| %124 = OpVariable %_ptr_Function_v2float Function |
| %128 = OpVariable %_ptr_Function_v2float Function |
| %10 = OpSelect %float %false %float_9_99999994en09 %float_0 |
| OpStore %_kGuardedDivideEpsilon %10 |
| %99 = OpAccessChain %_ptr_Uniform_v4float %16 %int_0 |
| %103 = OpLoad %v4float %99 ; RelaxedPrecision |
| %104 = OpVectorShuffle %v2float %103 %103 0 3 ; RelaxedPrecision |
| OpStore %105 %104 |
| %106 = OpAccessChain %_ptr_Uniform_v4float %16 %int_1 |
| %108 = OpLoad %v4float %106 ; RelaxedPrecision |
| %109 = OpVectorShuffle %v2float %108 %108 0 3 ; RelaxedPrecision |
| OpStore %110 %109 |
| %111 = OpFunctionCall %float %color_burn_component_Qhh2h2 %105 %110 |
| %112 = OpAccessChain %_ptr_Uniform_v4float %16 %int_0 |
| %113 = OpLoad %v4float %112 ; RelaxedPrecision |
| %114 = OpVectorShuffle %v2float %113 %113 1 3 ; RelaxedPrecision |
| OpStore %115 %114 |
| %116 = OpAccessChain %_ptr_Uniform_v4float %16 %int_1 |
| %117 = OpLoad %v4float %116 ; RelaxedPrecision |
| %118 = OpVectorShuffle %v2float %117 %117 1 3 ; RelaxedPrecision |
| OpStore %119 %118 |
| %120 = OpFunctionCall %float %color_burn_component_Qhh2h2 %115 %119 |
| %121 = OpAccessChain %_ptr_Uniform_v4float %16 %int_0 |
| %122 = OpLoad %v4float %121 ; RelaxedPrecision |
| %123 = OpVectorShuffle %v2float %122 %122 2 3 ; RelaxedPrecision |
| OpStore %124 %123 |
| %125 = OpAccessChain %_ptr_Uniform_v4float %16 %int_1 |
| %126 = OpLoad %v4float %125 ; RelaxedPrecision |
| %127 = OpVectorShuffle %v2float %126 %126 2 3 ; RelaxedPrecision |
| OpStore %128 %127 |
| %129 = OpFunctionCall %float %color_burn_component_Qhh2h2 %124 %128 |
| %130 = OpAccessChain %_ptr_Uniform_v4float %16 %int_0 |
| %131 = OpLoad %v4float %130 ; RelaxedPrecision |
| %132 = OpCompositeExtract %float %131 3 ; RelaxedPrecision |
| %133 = OpAccessChain %_ptr_Uniform_v4float %16 %int_0 |
| %134 = OpLoad %v4float %133 ; RelaxedPrecision |
| %135 = OpCompositeExtract %float %134 3 ; RelaxedPrecision |
| %136 = OpFSub %float %float_1 %135 ; RelaxedPrecision |
| %137 = OpAccessChain %_ptr_Uniform_v4float %16 %int_1 |
| %138 = OpLoad %v4float %137 ; RelaxedPrecision |
| %139 = OpCompositeExtract %float %138 3 ; RelaxedPrecision |
| %140 = OpFMul %float %136 %139 ; RelaxedPrecision |
| %141 = OpFAdd %float %132 %140 ; RelaxedPrecision |
| %142 = OpCompositeConstruct %v4float %111 %120 %129 %141 ; RelaxedPrecision |
| OpStore %sk_FragColor %142 |
| OpReturn |
| OpFunctionEnd |