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