• 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 %36 RelaxedPrecision
18OpDecorate %38 RelaxedPrecision
19OpDecorate %39 RelaxedPrecision
20OpDecorate %40 RelaxedPrecision
21OpDecorate %44 RelaxedPrecision
22OpDecorate %45 RelaxedPrecision
23OpDecorate %54 RelaxedPrecision
24OpDecorate %55 RelaxedPrecision
25OpDecorate %56 RelaxedPrecision
26OpDecorate %57 RelaxedPrecision
27OpDecorate %63 RelaxedPrecision
28OpDecorate %64 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 = OpAccessChain %_ptr_Function_float %x %int_0
72%36 = OpLoad %float %32
73%38 = OpFSub %float %36 %float_0_25
74OpStore %32 %38
75%39 = OpLoad %v4float %x
76%40 = OpCompositeExtract %float %39 0
77%41 = OpFOrdLessThanEqual %bool %40 %float_0
78OpSelectionMerge %43 None
79OpBranchConditional %41 %42 %43
80%42 = OpLabel
81OpBranch %31
82%43 = OpLabel
83OpBranch %29
84%29 = OpLabel
85OpBranch %30
86%30 = OpLabel
87%44 = OpLoad %v4float %x
88%45 = OpCompositeExtract %float %44 3
89%46 = OpFOrdEqual %bool %45 %float_1
90OpBranchConditional %46 %27 %31
91%31 = OpLabel
92OpBranch %47
93%47 = OpLabel
94OpLoopMerge %51 %50 None
95OpBranch %48
96%48 = OpLabel
97%52 = OpAccessChain %_ptr_Function_float %x %int_2
98%54 = OpLoad %float %52
99%55 = OpFSub %float %54 %float_0_25
100OpStore %52 %55
101%56 = OpLoad %v4float %x
102%57 = OpCompositeExtract %float %56 3
103%58 = OpFOrdEqual %bool %57 %float_1
104OpSelectionMerge %60 None
105OpBranchConditional %58 %59 %60
106%59 = OpLabel
107OpBranch %50
108%60 = OpLabel
109%61 = OpAccessChain %_ptr_Function_float %x %int_1
110OpStore %61 %float_0
111OpBranch %49
112%49 = OpLabel
113OpBranch %50
114%50 = OpLabel
115%63 = OpLoad %v4float %x
116%64 = OpCompositeExtract %float %63 2
117%65 = OpFOrdGreaterThan %bool %64 %float_0
118OpBranchConditional %65 %47 %51
119%51 = OpLabel
120%66 = OpLoad %v4float %x
121OpReturnValue %66
122OpFunctionEnd
123