• 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"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpName %i1 "i1"
13OpName %i2 "i2"
14OpName %i3 "i3"
15OpName %i4 "i4"
16OpName %i5 "i5"
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpDecorate %sk_Clockwise BuiltIn FrontFacing
21OpMemberDecorate %_UniformBuffer 0 Offset 0
22OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
23OpDecorate %_UniformBuffer Block
24OpDecorate %10 Binding 0
25OpDecorate %10 DescriptorSet 0
26OpDecorate %51 RelaxedPrecision
27%float = OpTypeFloat 32
28%v4float = OpTypeVector %float 4
29%_ptr_Output_v4float = OpTypePointer Output %v4float
30%sk_FragColor = OpVariable %_ptr_Output_v4float Output
31%bool = OpTypeBool
32%_ptr_Input_bool = OpTypePointer Input %bool
33%sk_Clockwise = OpVariable %_ptr_Input_bool Input
34%_UniformBuffer = OpTypeStruct %v4float
35%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
36%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
37%void = OpTypeVoid
38%15 = OpTypeFunction %void
39%v2float = OpTypeVector %float 2
40%float_0 = OpConstant %float 0
41%19 = OpConstantComposite %v2float %float_0 %float_0
42%_ptr_Function_v2float = OpTypePointer Function %v2float
43%23 = OpTypeFunction %v4float %_ptr_Function_v2float
44%int = OpTypeInt 32 1
45%_ptr_Function_int = OpTypePointer Function %int
46%int_0 = OpConstant %int 0
47%int_1 = OpConstant %int 1
48%int_4660 = OpConstant %int 4660
49%int_32766 = OpConstant %int 32766
50%int_n32766 = OpConstant %int -32766
51%int_19132 = OpConstant %int 19132
52%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
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%i1 = OpVariable %_ptr_Function_int Function
65%i2 = OpVariable %_ptr_Function_int Function
66%i3 = OpVariable %_ptr_Function_int Function
67%i4 = OpVariable %_ptr_Function_int Function
68%i5 = OpVariable %_ptr_Function_int Function
69OpStore %i1 %int_0
70%30 = OpLoad %int %i1
71%32 = OpIAdd %int %30 %int_1
72OpStore %i1 %32
73OpStore %i2 %int_4660
74%35 = OpLoad %int %i2
75%36 = OpIAdd %int %35 %int_1
76OpStore %i2 %36
77OpStore %i3 %int_32766
78%39 = OpLoad %int %i3
79%40 = OpIAdd %int %39 %int_1
80OpStore %i3 %40
81OpStore %i4 %int_n32766
82%43 = OpLoad %int %i4
83%44 = OpIAdd %int %43 %int_1
84OpStore %i4 %44
85OpStore %i5 %int_19132
86%47 = OpLoad %int %i5
87%48 = OpIAdd %int %47 %int_1
88OpStore %i5 %48
89%49 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
90%51 = OpLoad %v4float %49
91OpReturnValue %51
92OpFunctionEnd
93