• 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 "colorGreen"
10OpMemberName %_UniformBuffer 1 "colorRed"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %main "main"
13OpName %b "b"
14OpName %c "c"
15OpDecorate %sk_FragColor RelaxedPrecision
16OpDecorate %sk_FragColor Location 0
17OpDecorate %sk_FragColor Index 0
18OpDecorate %sk_Clockwise BuiltIn FrontFacing
19OpMemberDecorate %_UniformBuffer 0 Offset 0
20OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
21OpMemberDecorate %_UniformBuffer 1 Offset 16
22OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
23OpDecorate %_UniformBuffer Block
24OpDecorate %10 Binding 0
25OpDecorate %10 DescriptorSet 0
26OpDecorate %43 RelaxedPrecision
27OpDecorate %46 RelaxedPrecision
28%float = OpTypeFloat 32
29%v4float = OpTypeVector %float 4
30%_ptr_Output_v4float = OpTypePointer Output %v4float
31%sk_FragColor = OpVariable %_ptr_Output_v4float Output
32%bool = OpTypeBool
33%_ptr_Input_bool = OpTypePointer Input %bool
34%sk_Clockwise = OpVariable %_ptr_Input_bool Input
35%_UniformBuffer = OpTypeStruct %v4float %v4float
36%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
37%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
38%void = OpTypeVoid
39%15 = OpTypeFunction %void
40%v2float = OpTypeVector %float 2
41%float_0 = OpConstant %float 0
42%19 = OpConstantComposite %v2float %float_0 %float_0
43%_ptr_Function_v2float = OpTypePointer Function %v2float
44%23 = OpTypeFunction %v4float %_ptr_Function_v2float
45%_ptr_Function_v4float = OpTypePointer Function %v4float
46%float_1 = OpConstant %float 1
47%29 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
48%v4bool = OpTypeVector %bool 4
49%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
50%int = OpTypeInt 32 1
51%int_1 = OpConstant %int 1
52%int_0 = OpConstant %int 0
53%_entrypoint_v = OpFunction %void None %15
54%16 = OpLabel
55%20 = OpVariable %_ptr_Function_v2float Function
56OpStore %20 %19
57%22 = OpFunctionCall %v4float %main %20
58OpStore %sk_FragColor %22
59OpReturn
60OpFunctionEnd
61%main = OpFunction %v4float None %23
62%24 = OpFunctionParameter %_ptr_Function_v2float
63%25 = OpLabel
64%b = OpVariable %_ptr_Function_v4float Function
65%c = OpVariable %_ptr_Function_v4float Function
66OpStore %b %29
67OpStore %c %29
68%31 = OpLoad %v4float %b
69%32 = OpLoad %v4float %c
70%33 = OpFOrdNotEqual %v4bool %31 %32
71%35 = OpAny %bool %33
72OpSelectionMerge %38 None
73OpBranchConditional %35 %36 %37
74%36 = OpLabel
75%39 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
76%43 = OpLoad %v4float %39
77OpReturnValue %43
78%37 = OpLabel
79%44 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
80%46 = OpLoad %v4float %44
81OpReturnValue %46
82%38 = OpLabel
83OpUnreachable
84OpFunctionEnd
85