2021-02-05 21:24:03 +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
|
2021-02-05 21:24:03 +00:00
|
|
|
OpName %sk_FragColor "sk_FragColor"
|
|
|
|
OpName %sk_Clockwise "sk_Clockwise"
|
|
|
|
OpName %_UniformBuffer "_UniformBuffer"
|
|
|
|
OpMemberName %_UniformBuffer 0 "testInputs"
|
|
|
|
OpMemberName %_UniformBuffer 1 "colorGreen"
|
|
|
|
OpMemberName %_UniformBuffer 2 "colorRed"
|
2021-03-22 16:05:31 +00:00
|
|
|
OpName %_entrypoint_v "_entrypoint_v"
|
2021-02-05 21:24:03 +00:00
|
|
|
OpName %main "main"
|
2021-03-15 22:08:38 +00:00
|
|
|
OpName %_0_v "_0_v"
|
|
|
|
OpName %_1_x "_1_x"
|
|
|
|
OpName %_2_y "_2_y"
|
|
|
|
OpName %_3_z "_3_z"
|
|
|
|
OpName %_4_w "_4_w"
|
2021-02-05 21:24:03 +00:00
|
|
|
OpName %a "a"
|
2021-03-15 22:08:38 +00:00
|
|
|
OpName %_9_x "_9_x"
|
|
|
|
OpName %_10_y "_10_y"
|
|
|
|
OpName %_11_z "_11_z"
|
|
|
|
OpName %_12_w "_12_w"
|
2021-03-08 14:18:07 +00:00
|
|
|
OpName %b "b"
|
2021-03-15 22:08:38 +00:00
|
|
|
OpName %_13_v "_13_v"
|
|
|
|
OpName %_14_x "_14_x"
|
|
|
|
OpName %_15_y "_15_y"
|
|
|
|
OpName %_16_z "_16_z"
|
|
|
|
OpName %_17_w "_17_w"
|
2021-03-08 18:29:15 +00:00
|
|
|
OpName %c "c"
|
2021-02-05 21:24:03 +00:00
|
|
|
OpDecorate %sk_FragColor RelaxedPrecision
|
|
|
|
OpDecorate %sk_FragColor Location 0
|
|
|
|
OpDecorate %sk_FragColor Index 0
|
|
|
|
OpDecorate %sk_Clockwise BuiltIn FrontFacing
|
|
|
|
OpMemberDecorate %_UniformBuffer 0 Offset 0
|
|
|
|
OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
|
|
|
|
OpMemberDecorate %_UniformBuffer 1 Offset 16
|
|
|
|
OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
|
|
|
|
OpMemberDecorate %_UniformBuffer 2 Offset 32
|
|
|
|
OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
|
|
|
|
OpDecorate %_UniformBuffer Block
|
2021-03-15 22:08:38 +00:00
|
|
|
OpDecorate %10 Binding 0
|
|
|
|
OpDecorate %10 DescriptorSet 0
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %_0_v RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %32 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_1_x RelaxedPrecision
|
2021-02-05 21:24:03 +00:00
|
|
|
OpDecorate %35 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %36 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_2_y RelaxedPrecision
|
2021-02-05 21:24:03 +00:00
|
|
|
OpDecorate %38 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %39 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_3_z RelaxedPrecision
|
2021-02-05 21:24:03 +00:00
|
|
|
OpDecorate %41 RelaxedPrecision
|
2021-03-15 22:08:38 +00:00
|
|
|
OpDecorate %42 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_4_w RelaxedPrecision
|
2021-02-05 21:24:03 +00:00
|
|
|
OpDecorate %44 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %45 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %a RelaxedPrecision
|
|
|
|
OpDecorate %47 RelaxedPrecision
|
2021-03-16 16:19:54 +00:00
|
|
|
OpDecorate %48 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %49 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %50 RelaxedPrecision
|
|
|
|
OpDecorate %51 RelaxedPrecision
|
|
|
|
OpDecorate %_9_x RelaxedPrecision
|
|
|
|
OpDecorate %54 RelaxedPrecision
|
|
|
|
OpDecorate %55 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %_10_y RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %58 RelaxedPrecision
|
|
|
|
OpDecorate %59 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %_11_z RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %62 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %63 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_12_w RelaxedPrecision
|
2021-03-16 16:19:54 +00:00
|
|
|
OpDecorate %66 RelaxedPrecision
|
2021-03-23 18:16:52 +00:00
|
|
|
OpDecorate %67 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %b RelaxedPrecision
|
|
|
|
OpDecorate %69 RelaxedPrecision
|
|
|
|
OpDecorate %70 RelaxedPrecision
|
|
|
|
OpDecorate %71 RelaxedPrecision
|
|
|
|
OpDecorate %72 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %73 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_13_v RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %78 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_14_x RelaxedPrecision
|
|
|
|
OpDecorate %80 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %81 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_15_y RelaxedPrecision
|
|
|
|
OpDecorate %83 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %84 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_16_z RelaxedPrecision
|
|
|
|
OpDecorate %86 RelaxedPrecision
|
2021-04-26 19:39:17 +00:00
|
|
|
OpDecorate %87 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %_17_w RelaxedPrecision
|
2021-03-08 18:29:15 +00:00
|
|
|
OpDecorate %89 RelaxedPrecision
|
2021-03-16 16:19:54 +00:00
|
|
|
OpDecorate %90 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %c RelaxedPrecision
|
|
|
|
OpDecorate %92 RelaxedPrecision
|
2021-03-16 16:19:54 +00:00
|
|
|
OpDecorate %93 RelaxedPrecision
|
2021-04-21 18:27:08 +00:00
|
|
|
OpDecorate %94 RelaxedPrecision
|
|
|
|
OpDecorate %95 RelaxedPrecision
|
|
|
|
OpDecorate %96 RelaxedPrecision
|
|
|
|
OpDecorate %98 RelaxedPrecision
|
|
|
|
OpDecorate %102 RelaxedPrecision
|
|
|
|
OpDecorate %108 RelaxedPrecision
|
|
|
|
OpDecorate %114 RelaxedPrecision
|
|
|
|
OpDecorate %124 RelaxedPrecision
|
|
|
|
OpDecorate %127 RelaxedPrecision
|
|
|
|
OpDecorate %128 RelaxedPrecision
|
2021-02-05 21:24:03 +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
|
|
|
|
%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float
|
|
|
|
%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
|
2021-03-15 22:08:38 +00:00
|
|
|
%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
|
2021-02-05 21:24:03 +00:00
|
|
|
%void = OpTypeVoid
|
2021-03-15 22:08:38 +00:00
|
|
|
%15 = OpTypeFunction %void
|
2021-04-21 18:27:08 +00:00
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%float_0 = OpConstant %float 0
|
|
|
|
%19 = OpConstantComposite %v2float %float_0 %float_0
|
|
|
|
%_ptr_Function_v2float = OpTypePointer Function %v2float
|
|
|
|
%23 = OpTypeFunction %v4float %_ptr_Function_v2float
|
2021-02-05 21:24:03 +00:00
|
|
|
%_ptr_Function_v4float = OpTypePointer Function %v4float
|
|
|
|
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%int_0 = OpConstant %int 0
|
|
|
|
%_ptr_Function_float = OpTypePointer Function %float
|
2021-03-08 18:29:15 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
|
|
|
%float_2 = OpConstant %float 2
|
|
|
|
%float_3 = OpConstant %float 3
|
2021-04-21 18:27:08 +00:00
|
|
|
%78 = OpConstantComposite %v4float %float_0 %float_1 %float_2 %float_3
|
2021-03-08 14:18:07 +00:00
|
|
|
%false = OpConstantFalse %bool
|
2021-03-03 19:30:37 +00:00
|
|
|
%float_n1_25 = OpConstant %float -1.25
|
2021-02-05 21:24:03 +00:00
|
|
|
%float_0_75 = OpConstant %float 0.75
|
|
|
|
%float_2_25 = OpConstant %float 2.25
|
2021-04-21 18:27:08 +00:00
|
|
|
%102 = OpConstantComposite %v4float %float_n1_25 %float_0 %float_0_75 %float_2_25
|
2021-02-05 21:24:03 +00:00
|
|
|
%v4bool = OpTypeVector %bool 4
|
2021-03-16 16:19:54 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%int_2 = OpConstant %int 2
|
2021-03-22 16:05:31 +00:00
|
|
|
%_entrypoint_v = OpFunction %void None %15
|
2021-03-15 22:08:38 +00:00
|
|
|
%16 = OpLabel
|
2021-04-21 18:27:08 +00:00
|
|
|
%20 = OpVariable %_ptr_Function_v2float Function
|
|
|
|
OpStore %20 %19
|
|
|
|
%22 = OpFunctionCall %v4float %main %20
|
|
|
|
OpStore %sk_FragColor %22
|
2021-02-05 21:24:03 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2021-04-21 18:27:08 +00:00
|
|
|
%main = OpFunction %v4float None %23
|
|
|
|
%24 = OpFunctionParameter %_ptr_Function_v2float
|
|
|
|
%25 = OpLabel
|
2021-03-15 22:08:38 +00:00
|
|
|
%_0_v = OpVariable %_ptr_Function_v4float Function
|
|
|
|
%_1_x = OpVariable %_ptr_Function_float Function
|
|
|
|
%_2_y = OpVariable %_ptr_Function_float Function
|
|
|
|
%_3_z = OpVariable %_ptr_Function_float Function
|
|
|
|
%_4_w = OpVariable %_ptr_Function_float Function
|
2021-02-05 21:24:03 +00:00
|
|
|
%a = OpVariable %_ptr_Function_v4float Function
|
2021-03-15 22:08:38 +00:00
|
|
|
%_9_x = OpVariable %_ptr_Function_float Function
|
|
|
|
%_10_y = OpVariable %_ptr_Function_float Function
|
|
|
|
%_11_z = OpVariable %_ptr_Function_float Function
|
|
|
|
%_12_w = OpVariable %_ptr_Function_float Function
|
2021-03-08 14:18:07 +00:00
|
|
|
%b = OpVariable %_ptr_Function_v4float Function
|
2021-03-15 22:08:38 +00:00
|
|
|
%_13_v = OpVariable %_ptr_Function_v4float Function
|
|
|
|
%_14_x = OpVariable %_ptr_Function_float Function
|
|
|
|
%_15_y = OpVariable %_ptr_Function_float Function
|
|
|
|
%_16_z = OpVariable %_ptr_Function_float Function
|
|
|
|
%_17_w = OpVariable %_ptr_Function_float Function
|
2021-03-08 18:29:15 +00:00
|
|
|
%c = OpVariable %_ptr_Function_v4float Function
|
2021-04-21 18:27:08 +00:00
|
|
|
%118 = OpVariable %_ptr_Function_v4float Function
|
|
|
|
%28 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
|
|
|
|
%32 = OpLoad %v4float %28
|
|
|
|
OpStore %_0_v %32
|
2021-03-15 22:08:38 +00:00
|
|
|
%35 = OpLoad %v4float %_0_v
|
2021-04-21 18:27:08 +00:00
|
|
|
%36 = OpCompositeExtract %float %35 0
|
|
|
|
OpStore %_1_x %36
|
2021-03-15 22:08:38 +00:00
|
|
|
%38 = OpLoad %v4float %_0_v
|
2021-04-21 18:27:08 +00:00
|
|
|
%39 = OpCompositeExtract %float %38 1
|
|
|
|
OpStore %_2_y %39
|
|
|
|
%41 = OpLoad %v4float %_0_v
|
|
|
|
%42 = OpCompositeExtract %float %41 2
|
|
|
|
OpStore %_3_z %42
|
|
|
|
%44 = OpLoad %v4float %_0_v
|
|
|
|
%45 = OpCompositeExtract %float %44 3
|
|
|
|
OpStore %_4_w %45
|
|
|
|
%47 = OpLoad %float %_1_x
|
|
|
|
%48 = OpLoad %float %_2_y
|
|
|
|
%49 = OpLoad %float %_3_z
|
|
|
|
%50 = OpLoad %float %_4_w
|
|
|
|
%51 = OpCompositeConstruct %v4float %47 %48 %49 %50
|
|
|
|
OpStore %a %51
|
|
|
|
%53 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
|
|
|
|
%54 = OpLoad %v4float %53
|
|
|
|
%55 = OpCompositeExtract %float %54 0
|
|
|
|
OpStore %_9_x %55
|
|
|
|
%57 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
|
|
|
|
%58 = OpLoad %v4float %57
|
|
|
|
%59 = OpCompositeExtract %float %58 1
|
|
|
|
OpStore %_10_y %59
|
|
|
|
%61 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
|
|
|
|
%62 = OpLoad %v4float %61
|
|
|
|
%63 = OpCompositeExtract %float %62 2
|
|
|
|
OpStore %_11_z %63
|
|
|
|
%65 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
|
|
|
|
%66 = OpLoad %v4float %65
|
|
|
|
%67 = OpCompositeExtract %float %66 3
|
|
|
|
OpStore %_12_w %67
|
|
|
|
%69 = OpLoad %float %_9_x
|
|
|
|
%70 = OpLoad %float %_10_y
|
|
|
|
%71 = OpLoad %float %_11_z
|
|
|
|
%72 = OpLoad %float %_12_w
|
|
|
|
%73 = OpCompositeConstruct %v4float %69 %70 %71 %72
|
|
|
|
OpStore %b %73
|
|
|
|
OpStore %_13_v %78
|
|
|
|
%80 = OpLoad %v4float %_13_v
|
|
|
|
%81 = OpCompositeExtract %float %80 0
|
|
|
|
OpStore %_14_x %81
|
|
|
|
%83 = OpLoad %v4float %_13_v
|
|
|
|
%84 = OpCompositeExtract %float %83 1
|
|
|
|
OpStore %_15_y %84
|
|
|
|
%86 = OpLoad %v4float %_13_v
|
|
|
|
%87 = OpCompositeExtract %float %86 2
|
|
|
|
OpStore %_16_z %87
|
|
|
|
%89 = OpLoad %v4float %_13_v
|
|
|
|
%90 = OpCompositeExtract %float %89 3
|
|
|
|
OpStore %_17_w %90
|
|
|
|
%92 = OpLoad %float %_14_x
|
|
|
|
%93 = OpLoad %float %_15_y
|
|
|
|
%94 = OpLoad %float %_16_z
|
|
|
|
%95 = OpLoad %float %_17_w
|
|
|
|
%96 = OpCompositeConstruct %v4float %92 %93 %94 %95
|
|
|
|
OpStore %c %96
|
|
|
|
%98 = OpLoad %v4float %a
|
|
|
|
%103 = OpFOrdEqual %v4bool %98 %102
|
|
|
|
%105 = OpAll %bool %103
|
|
|
|
OpSelectionMerge %107 None
|
|
|
|
OpBranchConditional %105 %106 %107
|
|
|
|
%106 = OpLabel
|
|
|
|
%108 = OpLoad %v4float %b
|
|
|
|
%109 = OpFOrdEqual %v4bool %108 %102
|
|
|
|
%110 = OpAll %bool %109
|
|
|
|
OpBranch %107
|
2021-03-16 16:19:54 +00:00
|
|
|
%107 = OpLabel
|
2021-04-21 18:27:08 +00:00
|
|
|
%111 = OpPhi %bool %false %25 %110 %106
|
|
|
|
OpSelectionMerge %113 None
|
|
|
|
OpBranchConditional %111 %112 %113
|
|
|
|
%112 = OpLabel
|
|
|
|
%114 = OpLoad %v4float %c
|
|
|
|
%115 = OpFOrdEqual %v4bool %114 %78
|
|
|
|
%116 = OpAll %bool %115
|
|
|
|
OpBranch %113
|
|
|
|
%113 = OpLabel
|
|
|
|
%117 = OpPhi %bool %false %107 %116 %112
|
|
|
|
OpSelectionMerge %121 None
|
|
|
|
OpBranchConditional %117 %119 %120
|
|
|
|
%119 = OpLabel
|
|
|
|
%122 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
|
|
|
|
%124 = OpLoad %v4float %122
|
|
|
|
OpStore %118 %124
|
|
|
|
OpBranch %121
|
|
|
|
%120 = OpLabel
|
|
|
|
%125 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
|
|
|
|
%127 = OpLoad %v4float %125
|
|
|
|
OpStore %118 %127
|
|
|
|
OpBranch %121
|
|
|
|
%121 = OpLabel
|
|
|
|
%128 = OpLoad %v4float %118
|
|
|
|
OpReturnValue %128
|
2021-02-05 21:24:03 +00:00
|
|
|
OpFunctionEnd
|