2020-11-26 03:19:16 +00:00
|
|
|
OpCapability Shader
|
|
|
|
%1 = OpExtInstImport "GLSL.std.450"
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-03-22 16:05:31 +00:00
|
|
|
OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
|
|
|
|
OpExecutionMode %_entrypoint_v OriginUpperLeft
|
2020-11-26 03:19:16 +00:00
|
|
|
OpName %sk_FragColor "sk_FragColor"
|
|
|
|
OpName %sk_Clockwise "sk_Clockwise"
|
2021-02-01 16:52:10 +00:00
|
|
|
OpName %_UniformBuffer "_UniformBuffer"
|
|
|
|
OpMemberName %_UniformBuffer 0 "colorGreen"
|
|
|
|
OpMemberName %_UniformBuffer 1 "colorRed"
|
2021-03-22 16:05:31 +00:00
|
|
|
OpName %_entrypoint_v "_entrypoint_v"
|
|
|
|
OpName %unpremul_h4h4 "unpremul_h4h4"
|
|
|
|
OpName %live_fn_h4h4h4 "live_fn_h4h4h4"
|
2020-11-26 03:19:16 +00:00
|
|
|
OpName %main "main"
|
2021-02-01 16:52:10 +00:00
|
|
|
OpName %a "a"
|
|
|
|
OpName %b "b"
|
2020-11-26 03:19:16 +00:00
|
|
|
OpDecorate %sk_FragColor RelaxedPrecision
|
|
|
|
OpDecorate %sk_FragColor Location 0
|
|
|
|
OpDecorate %sk_FragColor Index 0
|
|
|
|
OpDecorate %sk_Clockwise BuiltIn FrontFacing
|
2021-02-01 16:52:10 +00:00
|
|
|
OpMemberDecorate %_UniformBuffer 0 Offset 0
|
|
|
|
OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
|
|
|
|
OpMemberDecorate %_UniformBuffer 1 Offset 16
|
|
|
|
OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
|
|
|
|
OpDecorate %_UniformBuffer Block
|
|
|
|
OpDecorate %12 Binding 0
|
|
|
|
OpDecorate %12 DescriptorSet 0
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %24 RelaxedPrecision
|
|
|
|
OpDecorate %25 RelaxedPrecision
|
|
|
|
OpDecorate %28 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %29 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %32 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %33 RelaxedPrecision
|
|
|
|
OpDecorate %34 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %35 RelaxedPrecision
|
|
|
|
OpDecorate %36 RelaxedPrecision
|
2021-02-01 16:52:10 +00:00
|
|
|
OpDecorate %37 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %38 RelaxedPrecision
|
|
|
|
OpDecorate %39 RelaxedPrecision
|
2021-02-01 16:52:10 +00:00
|
|
|
OpDecorate %44 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %45 RelaxedPrecision
|
|
|
|
OpDecorate %46 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %a RelaxedPrecision
|
|
|
|
OpDecorate %b RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %52 RelaxedPrecision
|
|
|
|
OpDecorate %55 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %58 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %62 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %64 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %70 RelaxedPrecision
|
|
|
|
OpDecorate %82 RelaxedPrecision
|
|
|
|
OpDecorate %85 RelaxedPrecision
|
|
|
|
OpDecorate %86 RelaxedPrecision
|
2020-11-26 03:19:16 +00:00
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
|
|
|
%sk_FragColor = OpVariable %_ptr_Output_v4float Output
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%_ptr_Input_bool = OpTypePointer Input %bool
|
|
|
|
%sk_Clockwise = OpVariable %_ptr_Input_bool Input
|
2021-02-01 16:52:10 +00:00
|
|
|
%_UniformBuffer = OpTypeStruct %v4float %v4float
|
|
|
|
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
|
|
|
|
%12 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
|
2020-11-26 03:19:16 +00:00
|
|
|
%void = OpTypeVoid
|
2021-02-01 16:52:10 +00:00
|
|
|
%17 = OpTypeFunction %void
|
|
|
|
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
2021-04-26 19:39:17 +00:00
|
|
|
%20 = OpTypeFunction %v4float %_ptr_Function_v4float
|
2021-02-01 16:52:10 +00:00
|
|
|
%v3float = OpTypeVector %float 3
|
|
|
|
%float_9_99999975en05 = OpConstant %float 9.99999975e-05
|
|
|
|
%float_1 = OpConstant %float 1
|
2021-04-26 19:39:17 +00:00
|
|
|
%40 = OpTypeFunction %v4float %_ptr_Function_v4float %_ptr_Function_v4float
|
|
|
|
%47 = OpTypeFunction %v4float
|
2020-11-26 03:19:16 +00:00
|
|
|
%float_3 = OpConstant %float 3
|
2021-04-26 19:39:17 +00:00
|
|
|
%52 = OpConstantComposite %v4float %float_3 %float_3 %float_3 %float_3
|
2021-02-01 16:52:10 +00:00
|
|
|
%float_n5 = OpConstant %float -5
|
2021-04-26 19:39:17 +00:00
|
|
|
%55 = OpConstantComposite %v4float %float_n5 %float_n5 %float_n5 %float_n5
|
|
|
|
%58 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
|
2021-03-16 16:19:54 +00:00
|
|
|
%false = OpConstantFalse %bool
|
2021-04-26 19:39:17 +00:00
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%64 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
|
2021-02-01 16:52:10 +00:00
|
|
|
%v4bool = OpTypeVector %bool 4
|
|
|
|
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%int_0 = OpConstant %int 0
|
|
|
|
%int_1 = OpConstant %int 1
|
2021-03-22 16:05:31 +00:00
|
|
|
%_entrypoint_v = OpFunction %void None %17
|
2021-02-01 16:52:10 +00:00
|
|
|
%18 = OpLabel
|
2021-04-26 19:39:17 +00:00
|
|
|
%19 = OpFunctionCall %v4float %main
|
|
|
|
OpStore %sk_FragColor %19
|
2021-02-01 16:52:10 +00:00
|
|
|
OpReturn
|
2020-11-26 03:19:16 +00:00
|
|
|
OpFunctionEnd
|
2021-04-26 19:39:17 +00:00
|
|
|
%unpremul_h4h4 = OpFunction %v4float None %20
|
|
|
|
%22 = OpFunctionParameter %_ptr_Function_v4float
|
|
|
|
%23 = OpLabel
|
|
|
|
%24 = OpLoad %v4float %22
|
|
|
|
%25 = OpVectorShuffle %v3float %24 %24 0 1 2
|
|
|
|
%28 = OpLoad %v4float %22
|
|
|
|
%29 = OpCompositeExtract %float %28 3
|
|
|
|
%27 = OpExtInst %float %1 FMax %29 %float_9_99999975en05
|
|
|
|
%32 = OpFDiv %float %float_1 %27
|
|
|
|
%33 = OpVectorTimesScalar %v3float %25 %32
|
|
|
|
%34 = OpCompositeExtract %float %33 0
|
|
|
|
%35 = OpCompositeExtract %float %33 1
|
|
|
|
%36 = OpCompositeExtract %float %33 2
|
|
|
|
%37 = OpLoad %v4float %22
|
|
|
|
%38 = OpCompositeExtract %float %37 3
|
|
|
|
%39 = OpCompositeConstruct %v4float %34 %35 %36 %38
|
|
|
|
OpReturnValue %39
|
2020-11-26 03:19:16 +00:00
|
|
|
OpFunctionEnd
|
2021-04-26 19:39:17 +00:00
|
|
|
%live_fn_h4h4h4 = OpFunction %v4float None %40
|
|
|
|
%41 = OpFunctionParameter %_ptr_Function_v4float
|
|
|
|
%42 = OpFunctionParameter %_ptr_Function_v4float
|
|
|
|
%43 = OpLabel
|
|
|
|
%44 = OpLoad %v4float %41
|
|
|
|
%45 = OpLoad %v4float %42
|
|
|
|
%46 = OpFAdd %v4float %44 %45
|
|
|
|
OpReturnValue %46
|
2021-04-21 18:27:08 +00:00
|
|
|
OpFunctionEnd
|
2021-04-26 19:39:17 +00:00
|
|
|
%main = OpFunction %v4float None %47
|
|
|
|
%48 = OpLabel
|
2021-02-01 16:52:10 +00:00
|
|
|
%a = OpVariable %_ptr_Function_v4float Function
|
|
|
|
%b = OpVariable %_ptr_Function_v4float Function
|
2021-04-26 19:39:17 +00:00
|
|
|
%53 = OpVariable %_ptr_Function_v4float Function
|
|
|
|
%56 = OpVariable %_ptr_Function_v4float Function
|
2021-03-16 16:19:54 +00:00
|
|
|
%59 = OpVariable %_ptr_Function_v4float Function
|
2021-04-26 19:39:17 +00:00
|
|
|
%74 = OpVariable %_ptr_Function_v4float Function
|
|
|
|
OpStore %53 %52
|
|
|
|
OpStore %56 %55
|
|
|
|
%57 = OpFunctionCall %v4float %live_fn_h4h4h4 %53 %56
|
|
|
|
OpStore %a %57
|
2021-03-16 16:19:54 +00:00
|
|
|
OpStore %59 %58
|
2021-04-26 19:39:17 +00:00
|
|
|
%60 = OpFunctionCall %v4float %unpremul_h4h4 %59
|
|
|
|
OpStore %b %60
|
|
|
|
%62 = OpLoad %v4float %a
|
|
|
|
%65 = OpFOrdNotEqual %v4bool %62 %64
|
|
|
|
%67 = OpAny %bool %65
|
|
|
|
OpSelectionMerge %69 None
|
|
|
|
OpBranchConditional %67 %68 %69
|
|
|
|
%68 = OpLabel
|
|
|
|
%70 = OpLoad %v4float %b
|
|
|
|
%71 = OpFOrdNotEqual %v4bool %70 %64
|
|
|
|
%72 = OpAny %bool %71
|
|
|
|
OpBranch %69
|
|
|
|
%69 = OpLabel
|
|
|
|
%73 = OpPhi %bool %false %48 %72 %68
|
|
|
|
OpSelectionMerge %77 None
|
|
|
|
OpBranchConditional %73 %75 %76
|
|
|
|
%75 = OpLabel
|
|
|
|
%78 = OpAccessChain %_ptr_Uniform_v4float %12 %int_0
|
|
|
|
%82 = OpLoad %v4float %78
|
|
|
|
OpStore %74 %82
|
|
|
|
OpBranch %77
|
|
|
|
%76 = OpLabel
|
|
|
|
%83 = OpAccessChain %_ptr_Uniform_v4float %12 %int_1
|
|
|
|
%85 = OpLoad %v4float %83
|
|
|
|
OpStore %74 %85
|
|
|
|
OpBranch %77
|
|
|
|
%77 = OpLabel
|
|
|
|
%86 = OpLoad %v4float %74
|
|
|
|
OpReturnValue %86
|
2020-11-26 03:19:16 +00:00
|
|
|
OpFunctionEnd
|