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