• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_Clockwise %sk_FragColor
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %sk_FragColor "sk_FragColor"
8OpName %colorR "colorR"
9OpName %colorGreen "colorGreen"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpName %_0_ok "_0_ok"
13OpName %_1_d "_1_d"
14OpDecorate %sk_Clockwise BuiltIn FrontFacing
15OpDecorate %sk_FragColor RelaxedPrecision
16OpDecorate %sk_FragColor Location 0
17OpDecorate %sk_FragColor Index 0
18OpDecorate %colorR RelaxedPrecision
19OpDecorate %colorGreen RelaxedPrecision
20OpDecorate %_arr_float_int_2 ArrayStride 16
21OpDecorate %49 RelaxedPrecision
22OpDecorate %50 RelaxedPrecision
23OpDecorate %51 RelaxedPrecision
24%bool = OpTypeBool
25%_ptr_Input_bool = OpTypePointer Input %bool
26%sk_Clockwise = OpVariable %_ptr_Input_bool Input
27%float = OpTypeFloat 32
28%v4float = OpTypeVector %float 4
29%_ptr_Output_v4float = OpTypePointer Output %v4float
30%sk_FragColor = OpVariable %_ptr_Output_v4float Output
31%_ptr_Private_v4float = OpTypePointer Private %v4float
32%colorR = OpVariable %_ptr_Private_v4float Private
33%colorGreen = OpVariable %_ptr_Private_v4float Private
34%void = OpTypeVoid
35%15 = OpTypeFunction %void
36%18 = OpTypeFunction %v4float
37%int = OpTypeInt 32 1
38%_ptr_Function_int = OpTypePointer Function %int
39%int_2 = OpConstant %int 2
40%_arr_float_int_2 = OpTypeArray %float %int_2
41%_ptr_Function__arr_float_int_2 = OpTypePointer Function %_arr_float_int_2
42%float_0 = OpConstant %float 0
43%float_1 = OpConstant %float 1
44%int_1 = OpConstant %int 1
45%_ptr_Function_float = OpTypePointer Function %float
46%int_0 = OpConstant %int 0
47%_ptr_Function_v4float = OpTypePointer Function %v4float
48%_entrypoint_v = OpFunction %void None %15
49%16 = OpLabel
50%17 = OpFunctionCall %v4float %main
51OpStore %sk_FragColor %17
52OpReturn
53OpFunctionEnd
54%main = OpFunction %v4float None %18
55%19 = OpLabel
56%_0_ok = OpVariable %_ptr_Function_int Function
57%_1_d = OpVariable %_ptr_Function__arr_float_int_2 Function
58%44 = OpVariable %_ptr_Function_v4float Function
59%29 = OpCompositeConstruct %_arr_float_int_2 %float_0 %float_1
60OpStore %_1_d %29
61OpBranch %30
62%30 = OpLabel
63OpLoopMerge %34 %33 None
64OpBranch %31
65%31 = OpLabel
66%35 = OpNot %int %int_1
67%37 = OpAccessChain %_ptr_Function_float %_1_d %35
68%39 = OpLoad %float %37
69%40 = OpFOrdLessThan %bool %float_0 %39
70OpBranchConditional %40 %32 %34
71%32 = OpLabel
72OpBranch %33
73%33 = OpLabel
74OpBranch %30
75%34 = OpLabel
76%41 = OpLoad %int %_0_ok
77%43 = OpIEqual %bool %41 %int_0
78OpSelectionMerge %48 None
79OpBranchConditional %43 %46 %47
80%46 = OpLabel
81%49 = OpLoad %v4float %colorGreen
82OpStore %44 %49
83OpBranch %48
84%47 = OpLabel
85%50 = OpLoad %v4float %colorR
86OpStore %44 %50
87OpBranch %48
88%48 = OpLabel
89%51 = OpLoad %v4float %44
90OpReturnValue %51
91OpFunctionEnd
92