• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_Clockwise %sk_FragColor
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %sk_FragColor "sk_FragColor"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "unknownInput"
10OpName %main "main"
11OpName %i "i"
12OpName %i_0 "i"
13OpDecorate %sk_Clockwise BuiltIn FrontFacing
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpMemberDecorate %_UniformBuffer 0 Offset 0
18OpDecorate %_UniformBuffer Block
19OpDecorate %10 Binding 0
20OpDecorate %10 DescriptorSet 0
21OpDecorate %38 RelaxedPrecision
22OpDecorate %40 RelaxedPrecision
23OpDecorate %49 RelaxedPrecision
24OpDecorate %52 RelaxedPrecision
25OpDecorate %53 RelaxedPrecision
26OpDecorate %54 RelaxedPrecision
27%bool = OpTypeBool
28%_ptr_Input_bool = OpTypePointer Input %bool
29%sk_Clockwise = OpVariable %_ptr_Input_bool Input
30%float = OpTypeFloat 32
31%v4float = OpTypeVector %float 4
32%_ptr_Output_v4float = OpTypePointer Output %v4float
33%sk_FragColor = OpVariable %_ptr_Output_v4float Output
34%_UniformBuffer = OpTypeStruct %float
35%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
36%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
37%void = OpTypeVoid
38%14 = OpTypeFunction %void
39%_ptr_Uniform_float = OpTypePointer Uniform %float
40%int = OpTypeInt 32 1
41%int_0 = OpConstant %int 0
42%float_5 = OpConstant %float 5
43%float_0_75 = OpConstant %float 0.75
44%27 = OpConstantComposite %v4float %float_0_75 %float_0_75 %float_0_75 %float_0_75
45%_ptr_Function_int = OpTypePointer Function %int
46%int_10 = OpConstant %int 10
47%float_0_5 = OpConstant %float 0.5
48%int_1 = OpConstant %int 1
49%float_0_25 = OpConstant %float 0.25
50%51 = OpConstantComposite %v4float %float_0_25 %float_0_25 %float_0_25 %float_0_25
51%int_2 = OpConstant %int 2
52%int_100 = OpConstant %int 100
53%main = OpFunction %void None %14
54%15 = OpLabel
55%i = OpVariable %_ptr_Function_int Function
56%i_0 = OpVariable %_ptr_Function_int Function
57%16 = OpAccessChain %_ptr_Uniform_float %10 %int_0
58%20 = OpLoad %float %16
59%22 = OpFOrdGreaterThan %bool %20 %float_5
60OpSelectionMerge %25 None
61OpBranchConditional %22 %23 %24
62%23 = OpLabel
63OpStore %sk_FragColor %27
64OpBranch %25
65%24 = OpLabel
66OpKill
67%25 = OpLabel
68OpStore %i %int_0
69OpBranch %30
70%30 = OpLabel
71OpLoopMerge %34 %33 None
72OpBranch %31
73%31 = OpLabel
74%35 = OpLoad %int %i
75%37 = OpSLessThan %bool %35 %int_10
76OpBranchConditional %37 %32 %34
77%32 = OpLabel
78%38 = OpLoad %v4float %sk_FragColor
79%40 = OpVectorTimesScalar %v4float %38 %float_0_5
80OpStore %sk_FragColor %40
81%41 = OpLoad %int %i
82%43 = OpIAdd %int %41 %int_1
83OpStore %i %43
84OpBranch %33
85%33 = OpLabel
86OpBranch %30
87%34 = OpLabel
88OpBranch %44
89%44 = OpLabel
90OpLoopMerge %48 %47 None
91OpBranch %45
92%45 = OpLabel
93%49 = OpLoad %v4float %sk_FragColor
94%52 = OpFAdd %v4float %49 %51
95OpStore %sk_FragColor %52
96OpBranch %46
97%46 = OpLabel
98OpBranch %47
99%47 = OpLabel
100%53 = OpLoad %v4float %sk_FragColor
101%54 = OpCompositeExtract %float %53 0
102%55 = OpFOrdLessThan %bool %54 %float_0_75
103OpBranchConditional %55 %44 %48
104%48 = OpLabel
105OpStore %i_0 %int_0
106OpBranch %57
107%57 = OpLabel
108OpLoopMerge %61 %60 None
109OpBranch %58
110%58 = OpLabel
111%62 = OpLoad %int %i_0
112%63 = OpSLessThan %bool %62 %int_10
113OpBranchConditional %63 %59 %61
114%59 = OpLabel
115%64 = OpLoad %int %i_0
116%66 = OpSMod %int %64 %int_2
117%67 = OpIEqual %bool %66 %int_1
118OpSelectionMerge %70 None
119OpBranchConditional %67 %68 %69
120%68 = OpLabel
121OpBranch %61
122%69 = OpLabel
123%71 = OpLoad %int %i_0
124%73 = OpSGreaterThan %bool %71 %int_100
125OpSelectionMerge %76 None
126OpBranchConditional %73 %74 %75
127%74 = OpLabel
128OpReturn
129%75 = OpLabel
130OpBranch %60
131%76 = OpLabel
132OpBranch %70
133%70 = OpLabel
134OpBranch %60
135%60 = OpLabel
136%77 = OpLoad %int %i_0
137%78 = OpIAdd %int %77 %int_1
138OpStore %i_0 %78
139OpBranch %57
140%61 = OpLabel
141OpReturn
142OpFunctionEnd
143