• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "colorGreen"
10OpMemberName %_UniformBuffer 1 "colorRed"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %unpremul_h4h4 "unpremul_h4h4"
13OpName %live_fn_h4h4h4 "live_fn_h4h4h4"
14OpName %main "main"
15OpName %a "a"
16OpName %b "b"
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpDecorate %sk_Clockwise BuiltIn FrontFacing
21OpMemberDecorate %_UniformBuffer 0 Offset 0
22OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
23OpMemberDecorate %_UniformBuffer 1 Offset 16
24OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
25OpDecorate %_UniformBuffer Block
26OpDecorate %12 Binding 0
27OpDecorate %12 DescriptorSet 0
28OpDecorate %29 RelaxedPrecision
29OpDecorate %30 RelaxedPrecision
30OpDecorate %33 RelaxedPrecision
31OpDecorate %34 RelaxedPrecision
32OpDecorate %37 RelaxedPrecision
33OpDecorate %38 RelaxedPrecision
34OpDecorate %39 RelaxedPrecision
35OpDecorate %40 RelaxedPrecision
36OpDecorate %41 RelaxedPrecision
37OpDecorate %42 RelaxedPrecision
38OpDecorate %43 RelaxedPrecision
39OpDecorate %44 RelaxedPrecision
40OpDecorate %49 RelaxedPrecision
41OpDecorate %50 RelaxedPrecision
42OpDecorate %51 RelaxedPrecision
43OpDecorate %a RelaxedPrecision
44OpDecorate %b RelaxedPrecision
45OpDecorate %58 RelaxedPrecision
46OpDecorate %61 RelaxedPrecision
47OpDecorate %64 RelaxedPrecision
48OpDecorate %68 RelaxedPrecision
49OpDecorate %69 RelaxedPrecision
50OpDecorate %75 RelaxedPrecision
51OpDecorate %87 RelaxedPrecision
52OpDecorate %90 RelaxedPrecision
53OpDecorate %91 RelaxedPrecision
54%float = OpTypeFloat 32
55%v4float = OpTypeVector %float 4
56%_ptr_Output_v4float = OpTypePointer Output %v4float
57%sk_FragColor = OpVariable %_ptr_Output_v4float Output
58%bool = OpTypeBool
59%_ptr_Input_bool = OpTypePointer Input %bool
60%sk_Clockwise = OpVariable %_ptr_Input_bool Input
61%_UniformBuffer = OpTypeStruct %v4float %v4float
62%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
63%12 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
64%void = OpTypeVoid
65%17 = OpTypeFunction %void
66%v2float = OpTypeVector %float 2
67%float_0 = OpConstant %float 0
68%21 = OpConstantComposite %v2float %float_0 %float_0
69%_ptr_Function_v2float = OpTypePointer Function %v2float
70%_ptr_Function_v4float = OpTypePointer Function %v4float
71%25 = OpTypeFunction %v4float %_ptr_Function_v4float
72%v3float = OpTypeVector %float 3
73%float_9_99999975en05 = OpConstant %float 9.99999975e-05
74%float_1 = OpConstant %float 1
75%45 = OpTypeFunction %v4float %_ptr_Function_v4float %_ptr_Function_v4float
76%52 = OpTypeFunction %v4float %_ptr_Function_v2float
77%float_3 = OpConstant %float 3
78%58 = OpConstantComposite %v4float %float_3 %float_3 %float_3 %float_3
79%float_n5 = OpConstant %float -5
80%61 = OpConstantComposite %v4float %float_n5 %float_n5 %float_n5 %float_n5
81%64 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
82%false = OpConstantFalse %bool
83%69 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
84%v4bool = OpTypeVector %bool 4
85%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
86%int = OpTypeInt 32 1
87%int_0 = OpConstant %int 0
88%int_1 = OpConstant %int 1
89%_entrypoint_v = OpFunction %void None %17
90%18 = OpLabel
91%22 = OpVariable %_ptr_Function_v2float Function
92OpStore %22 %21
93%24 = OpFunctionCall %v4float %main %22
94OpStore %sk_FragColor %24
95OpReturn
96OpFunctionEnd
97%unpremul_h4h4 = OpFunction %v4float None %25
98%27 = OpFunctionParameter %_ptr_Function_v4float
99%28 = OpLabel
100%29 = OpLoad %v4float %27
101%30 = OpVectorShuffle %v3float %29 %29 0 1 2
102%33 = OpLoad %v4float %27
103%34 = OpCompositeExtract %float %33 3
104%32 = OpExtInst %float %1 FMax %34 %float_9_99999975en05
105%37 = OpFDiv %float %float_1 %32
106%38 = OpVectorTimesScalar %v3float %30 %37
107%39 = OpCompositeExtract %float %38 0
108%40 = OpCompositeExtract %float %38 1
109%41 = OpCompositeExtract %float %38 2
110%42 = OpLoad %v4float %27
111%43 = OpCompositeExtract %float %42 3
112%44 = OpCompositeConstruct %v4float %39 %40 %41 %43
113OpReturnValue %44
114OpFunctionEnd
115%live_fn_h4h4h4 = OpFunction %v4float None %45
116%46 = OpFunctionParameter %_ptr_Function_v4float
117%47 = OpFunctionParameter %_ptr_Function_v4float
118%48 = OpLabel
119%49 = OpLoad %v4float %46
120%50 = OpLoad %v4float %47
121%51 = OpFAdd %v4float %49 %50
122OpReturnValue %51
123OpFunctionEnd
124%main = OpFunction %v4float None %52
125%53 = OpFunctionParameter %_ptr_Function_v2float
126%54 = OpLabel
127%a = OpVariable %_ptr_Function_v4float Function
128%b = OpVariable %_ptr_Function_v4float Function
129%59 = OpVariable %_ptr_Function_v4float Function
130%62 = OpVariable %_ptr_Function_v4float Function
131%65 = OpVariable %_ptr_Function_v4float Function
132%79 = OpVariable %_ptr_Function_v4float Function
133OpStore %59 %58
134OpStore %62 %61
135%63 = OpFunctionCall %v4float %live_fn_h4h4h4 %59 %62
136OpStore %a %63
137OpStore %65 %64
138%66 = OpFunctionCall %v4float %unpremul_h4h4 %65
139OpStore %b %66
140%68 = OpLoad %v4float %a
141%70 = OpFOrdNotEqual %v4bool %68 %69
142%72 = OpAny %bool %70
143OpSelectionMerge %74 None
144OpBranchConditional %72 %73 %74
145%73 = OpLabel
146%75 = OpLoad %v4float %b
147%76 = OpFOrdNotEqual %v4bool %75 %69
148%77 = OpAny %bool %76
149OpBranch %74
150%74 = OpLabel
151%78 = OpPhi %bool %false %54 %77 %73
152OpSelectionMerge %82 None
153OpBranchConditional %78 %80 %81
154%80 = OpLabel
155%83 = OpAccessChain %_ptr_Uniform_v4float %12 %int_0
156%87 = OpLoad %v4float %83
157OpStore %79 %87
158OpBranch %82
159%81 = OpLabel
160%88 = OpAccessChain %_ptr_Uniform_v4float %12 %int_1
161%90 = OpLoad %v4float %88
162OpStore %79 %90
163OpBranch %82
164%82 = OpLabel
165%91 = OpLoad %v4float %79
166OpReturnValue %91
167OpFunctionEnd
168