• 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 %r "r"
13OpName %g "g"
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 %r RelaxedPrecision
24OpDecorate %g RelaxedPrecision
25OpDecorate %34 RelaxedPrecision
26OpDecorate %35 RelaxedPrecision
27OpDecorate %37 RelaxedPrecision
28OpDecorate %38 RelaxedPrecision
29OpDecorate %39 RelaxedPrecision
30OpDecorate %40 RelaxedPrecision
31%float = OpTypeFloat 32
32%v4float = OpTypeVector %float 4
33%_ptr_Output_v4float = OpTypePointer Output %v4float
34%sk_FragColor = OpVariable %_ptr_Output_v4float Output
35%bool = OpTypeBool
36%_ptr_Input_bool = OpTypePointer Input %bool
37%sk_Clockwise = OpVariable %_ptr_Input_bool Input
38%_UniformBuffer = OpTypeStruct %float
39%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
40%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
41%void = OpTypeVoid
42%15 = OpTypeFunction %void
43%v2float = OpTypeVector %float 2
44%float_0 = OpConstant %float 0
45%19 = OpConstantComposite %v2float %float_0 %float_0
46%_ptr_Function_v2float = OpTypePointer Function %v2float
47%23 = OpTypeFunction %v4float %_ptr_Function_v2float
48%_ptr_Function_float = OpTypePointer Function %float
49%float_1 = OpConstant %float 1
50%_ptr_Uniform_float = OpTypePointer Uniform %float
51%int = OpTypeInt 32 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%r = OpVariable %_ptr_Function_float Function
65%g = OpVariable %_ptr_Function_float Function
66%30 = OpAccessChain %_ptr_Uniform_float %10 %int_0
67%34 = OpLoad %float %30
68%35 = OpFSub %float %float_1 %34
69OpStore %r %35
70%36 = OpAccessChain %_ptr_Uniform_float %10 %int_0
71%37 = OpLoad %float %36
72OpStore %g %37
73%38 = OpLoad %float %r
74%39 = OpLoad %float %g
75%40 = OpCompositeConstruct %v4float %38 %39 %float_0 %float_1
76OpReturnValue %40
77OpFunctionEnd
78