• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "a"
10OpMemberName %_UniformBuffer 1 "b"
11OpMemberName %_UniformBuffer 2 "c"
12OpName %main "main"
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpMemberDecorate %_UniformBuffer 0 Offset 0
18OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
19OpMemberDecorate %_UniformBuffer 1 Offset 4
20OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
21OpMemberDecorate %_UniformBuffer 2 Offset 8
22OpMemberDecorate %_UniformBuffer 2 RelaxedPrecision
23OpDecorate %_UniformBuffer Block
24OpDecorate %10 Binding 0
25OpDecorate %10 DescriptorSet 0
26OpDecorate %16 RelaxedPrecision
27OpDecorate %21 RelaxedPrecision
28OpDecorate %24 RelaxedPrecision
29OpDecorate %27 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%_UniformBuffer = OpTypeStruct %float %float %float
38%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
39%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
40%void = OpTypeVoid
41%14 = OpTypeFunction %void
42%_ptr_Uniform_float = OpTypePointer Uniform %float
43%int = OpTypeInt 32 1
44%int_0 = OpConstant %int 0
45%int_1 = OpConstant %int 1
46%int_2 = OpConstant %int 2
47%_ptr_Output_float = OpTypePointer Output %float
48%main = OpFunction %void None %14
49%15 = OpLabel
50%17 = OpAccessChain %_ptr_Uniform_float %10 %int_0
51%21 = OpLoad %float %17
52%22 = OpAccessChain %_ptr_Uniform_float %10 %int_1
53%24 = OpLoad %float %22
54%25 = OpAccessChain %_ptr_Uniform_float %10 %int_2
55%27 = OpLoad %float %25
56%16 = OpExtInst %float %1 Fma %21 %24 %27
57%28 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
58OpStore %28 %16
59OpReturn
60OpFunctionEnd
61