• 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 "src"
10OpMemberName %_UniformBuffer 1 "dst"
11OpName %main "main"
12OpDecorate %sk_FragColor RelaxedPrecision
13OpDecorate %sk_FragColor Location 0
14OpDecorate %sk_FragColor Index 0
15OpDecorate %sk_Clockwise BuiltIn FrontFacing
16OpMemberDecorate %_UniformBuffer 0 Offset 0
17OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
18OpMemberDecorate %_UniformBuffer 1 Offset 16
19OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
20OpDecorate %_UniformBuffer Block
21OpDecorate %10 Binding 0
22OpDecorate %10 DescriptorSet 0
23OpDecorate %21 RelaxedPrecision
24OpDecorate %22 RelaxedPrecision
25OpDecorate %23 RelaxedPrecision
26OpDecorate %26 RelaxedPrecision
27OpDecorate %27 RelaxedPrecision
28OpDecorate %29 RelaxedPrecision
29OpDecorate %30 RelaxedPrecision
30OpDecorate %31 RelaxedPrecision
31OpDecorate %33 RelaxedPrecision
32OpDecorate %34 RelaxedPrecision
33OpDecorate %35 RelaxedPrecision
34%float = OpTypeFloat 32
35%v4float = OpTypeVector %float 4
36%_ptr_Output_v4float = OpTypePointer Output %v4float
37%sk_FragColor = OpVariable %_ptr_Output_v4float Output
38%bool = OpTypeBool
39%_ptr_Input_bool = OpTypePointer Input %bool
40%sk_Clockwise = OpVariable %_ptr_Input_bool Input
41%_UniformBuffer = OpTypeStruct %v4float %v4float
42%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
43%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
44%void = OpTypeVoid
45%14 = OpTypeFunction %void
46%float_1 = OpConstant %float 1
47%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
48%int = OpTypeInt 32 1
49%int_1 = OpConstant %int 1
50%int_0 = OpConstant %int 0
51%main = OpFunction %void None %14
52%15 = OpLabel
53%17 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
54%21 = OpLoad %v4float %17
55%22 = OpCompositeExtract %float %21 3
56%23 = OpFSub %float %float_1 %22
57%24 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
58%26 = OpLoad %v4float %24
59%27 = OpVectorTimesScalar %v4float %26 %23
60%28 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
61%29 = OpLoad %v4float %28
62%30 = OpCompositeExtract %float %29 3
63%31 = OpFSub %float %float_1 %30
64%32 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
65%33 = OpLoad %v4float %32
66%34 = OpVectorTimesScalar %v4float %33 %31
67%35 = OpFAdd %v4float %27 %34
68OpStore %sk_FragColor %35
69OpReturn
70OpFunctionEnd
71