• 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 %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "unknownInput"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpName %b "b"
13OpName %b4 "b4"
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
17OpDecorate %sk_Clockwise BuiltIn FrontFacing
18OpMemberDecorate %_UniformBuffer 0 Offset 0
19OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
20OpDecorate %_UniformBuffer Block
21OpDecorate %10 Binding 0
22OpDecorate %10 DescriptorSet 0
23OpDecorate %32 RelaxedPrecision
24OpDecorate %37 RelaxedPrecision
25OpDecorate %39 RelaxedPrecision
26OpDecorate %47 RelaxedPrecision
27OpDecorate %49 RelaxedPrecision
28OpDecorate %50 RelaxedPrecision
29OpDecorate %52 RelaxedPrecision
30OpDecorate %54 RelaxedPrecision
31OpDecorate %57 RelaxedPrecision
32OpDecorate %59 RelaxedPrecision
33OpDecorate %61 RelaxedPrecision
34OpDecorate %62 RelaxedPrecision
35%float = OpTypeFloat 32
36%v4float = OpTypeVector %float 4
37%_ptr_Output_v4float = OpTypePointer Output %v4float
38%sk_FragColor = OpVariable %_ptr_Output_v4float Output
39%bool = OpTypeBool
40%_ptr_Input_bool = OpTypePointer Input %bool
41%sk_Clockwise = OpVariable %_ptr_Input_bool Input
42%_UniformBuffer = OpTypeStruct %float
43%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
44%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
45%void = OpTypeVoid
46%15 = OpTypeFunction %void
47%v2float = OpTypeVector %float 2
48%float_0 = OpConstant %float 0
49%19 = OpConstantComposite %v2float %float_0 %float_0
50%_ptr_Function_v2float = OpTypePointer Function %v2float
51%23 = OpTypeFunction %v4float %_ptr_Function_v2float
52%_ptr_Function_bool = OpTypePointer Function %bool
53%_ptr_Uniform_float = OpTypePointer Uniform %float
54%int = OpTypeInt 32 1
55%int_0 = OpConstant %int 0
56%v4bool = OpTypeVector %bool 4
57%_ptr_Function_v4bool = OpTypePointer Function %v4bool
58%v2bool = OpTypeVector %bool 2
59%false = OpConstantFalse %bool
60%true = OpConstantTrue %bool
61%float_1 = OpConstant %float 1
62%_entrypoint_v = OpFunction %void None %15
63%16 = OpLabel
64%20 = OpVariable %_ptr_Function_v2float Function
65OpStore %20 %19
66%22 = OpFunctionCall %v4float %main %20
67OpStore %sk_FragColor %22
68OpReturn
69OpFunctionEnd
70%main = OpFunction %v4float None %23
71%24 = OpFunctionParameter %_ptr_Function_v2float
72%25 = OpLabel
73%b = OpVariable %_ptr_Function_bool Function
74%b4 = OpVariable %_ptr_Function_v4bool Function
75%28 = OpAccessChain %_ptr_Uniform_float %10 %int_0
76%32 = OpLoad %float %28
77%33 = OpFUnordNotEqual %bool %32 %float_0
78OpStore %b %33
79%37 = OpLoad %bool %b
80%38 = OpCompositeConstruct %v4bool %37 %37 %37 %37
81OpStore %b4 %38
82%39 = OpLoad %bool %b
83%40 = OpCompositeConstruct %v2bool %39 %39
84%42 = OpCompositeExtract %bool %40 0
85%43 = OpCompositeExtract %bool %40 1
86%46 = OpCompositeConstruct %v4bool %42 %43 %false %true
87OpStore %b4 %46
88%47 = OpLoad %bool %b
89%48 = OpCompositeConstruct %v4bool %false %47 %true %false
90OpStore %b4 %48
91%49 = OpLoad %bool %b
92%50 = OpLoad %bool %b
93%51 = OpCompositeConstruct %v4bool %false %49 %false %50
94OpStore %b4 %51
95%52 = OpLoad %v4bool %b4
96%53 = OpCompositeExtract %bool %52 0
97%54 = OpSelect %float %53 %float_1 %float_0
98%56 = OpCompositeExtract %bool %52 1
99%57 = OpSelect %float %56 %float_1 %float_0
100%58 = OpCompositeExtract %bool %52 2
101%59 = OpSelect %float %58 %float_1 %float_0
102%60 = OpCompositeExtract %bool %52 3
103%61 = OpSelect %float %60 %float_1 %float_0
104%62 = OpCompositeConstruct %v4float %54 %57 %59 %61
105OpReturnValue %62
106OpFunctionEnd
107