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