• 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 "colorWhite"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpName %color "color"
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpMemberDecorate %_UniformBuffer 0 Offset 0
18OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
19OpDecorate %_UniformBuffer Block
20OpDecorate %10 Binding 0
21OpDecorate %10 DescriptorSet 0
22OpDecorate %color RelaxedPrecision
23OpDecorate %28 RelaxedPrecision
24OpDecorate %33 RelaxedPrecision
25OpDecorate %34 RelaxedPrecision
26OpDecorate %43 RelaxedPrecision
27OpDecorate %44 RelaxedPrecision
28OpDecorate %58 RelaxedPrecision
29OpDecorate %59 RelaxedPrecision
30OpDecorate %67 RelaxedPrecision
31OpDecorate %68 RelaxedPrecision
32OpDecorate %70 RelaxedPrecision
33%float = OpTypeFloat 32
34%v4float = OpTypeVector %float 4
35%_ptr_Output_v4float = OpTypePointer Output %v4float
36%sk_FragColor = OpVariable %_ptr_Output_v4float Output
37%bool = OpTypeBool
38%_ptr_Input_bool = OpTypePointer Input %bool
39%sk_Clockwise = OpVariable %_ptr_Input_bool Input
40%_UniformBuffer = OpTypeStruct %v4float
41%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
42%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
43%void = OpTypeVoid
44%15 = OpTypeFunction %void
45%v2float = OpTypeVector %float 2
46%float_0 = OpConstant %float 0
47%19 = OpConstantComposite %v2float %float_0 %float_0
48%_ptr_Function_v2float = OpTypePointer Function %v2float
49%23 = OpTypeFunction %v4float %_ptr_Function_v2float
50%_ptr_Function_v4float = OpTypePointer Function %v4float
51%28 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_0
52%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
53%int = OpTypeInt 32 1
54%int_0 = OpConstant %int 0
55%float_1 = OpConstant %float 1
56%_ptr_Function_float = OpTypePointer Function %float
57%int_1 = OpConstant %int 1
58%float_2 = OpConstant %float 2
59%int_3 = OpConstant %int 3
60%_entrypoint_v = OpFunction %void None %15
61%16 = OpLabel
62%20 = OpVariable %_ptr_Function_v2float Function
63OpStore %20 %19
64%22 = OpFunctionCall %v4float %main %20
65OpStore %sk_FragColor %22
66OpReturn
67OpFunctionEnd
68%main = OpFunction %v4float None %23
69%24 = OpFunctionParameter %_ptr_Function_v2float
70%25 = OpLabel
71%color = OpVariable %_ptr_Function_v4float Function
72OpStore %color %28
73%29 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
74%33 = OpLoad %v4float %29
75%34 = OpCompositeExtract %float %33 0
76%36 = OpFOrdEqual %bool %34 %float_1
77OpSelectionMerge %38 None
78OpBranchConditional %36 %37 %38
79%37 = OpLabel
80%39 = OpAccessChain %_ptr_Function_float %color %int_1
81OpStore %39 %float_1
82OpBranch %38
83%38 = OpLabel
84%42 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
85%43 = OpLoad %v4float %42
86%44 = OpCompositeExtract %float %43 0
87%46 = OpFOrdEqual %bool %44 %float_2
88OpSelectionMerge %49 None
89OpBranchConditional %46 %47 %48
90%47 = OpLabel
91OpBranch %49
92%48 = OpLabel
93%50 = OpAccessChain %_ptr_Function_float %color %int_3
94OpStore %50 %float_1
95OpBranch %49
96%49 = OpLabel
97OpBranch %52
98%52 = OpLabel
99OpLoopMerge %56 %55 None
100OpBranch %53
101%53 = OpLabel
102%57 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
103%58 = OpLoad %v4float %57
104%59 = OpCompositeExtract %float %58 0
105%60 = OpFOrdEqual %bool %59 %float_2
106OpBranchConditional %60 %54 %56
107%54 = OpLabel
108OpBranch %55
109%55 = OpLabel
110OpBranch %52
111%56 = OpLabel
112OpBranch %61
113%61 = OpLabel
114OpLoopMerge %65 %64 None
115OpBranch %62
116%62 = OpLabel
117OpBranch %63
118%63 = OpLabel
119OpBranch %64
120%64 = OpLabel
121%66 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
122%67 = OpLoad %v4float %66
123%68 = OpCompositeExtract %float %67 0
124%69 = OpFOrdEqual %bool %68 %float_2
125OpBranchConditional %69 %61 %65
126%65 = OpLabel
127%70 = OpLoad %v4float %color
128OpReturnValue %70
129OpFunctionEnd
130