• 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 %u1 "u1"
13OpName %u2 "u2"
14OpName %u3 "u3"
15OpName %u4 "u4"
16OpName %u5 "u5"
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 %u5 RelaxedPrecision
27OpDecorate %47 RelaxedPrecision
28OpDecorate %48 RelaxedPrecision
29OpDecorate %53 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 %v4float
38%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
39%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
40%void = OpTypeVoid
41%15 = OpTypeFunction %void
42%v2float = OpTypeVector %float 2
43%float_0 = OpConstant %float 0
44%19 = OpConstantComposite %v2float %float_0 %float_0
45%_ptr_Function_v2float = OpTypePointer Function %v2float
46%23 = OpTypeFunction %v4float %_ptr_Function_v2float
47%uint = OpTypeInt 32 0
48%_ptr_Function_uint = OpTypePointer Function %uint
49%uint_0 = OpConstant %uint 0
50%uint_1 = OpConstant %uint 1
51%uint_305441741 = OpConstant %uint 305441741
52%uint_2147483646 = OpConstant %uint 2147483646
53%uint_4294967294 = OpConstant %uint 4294967294
54%uint_65534 = OpConstant %uint 65534
55%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
56%int = OpTypeInt 32 1
57%int_0 = OpConstant %int 0
58%_entrypoint_v = OpFunction %void None %15
59%16 = OpLabel
60%20 = OpVariable %_ptr_Function_v2float Function
61OpStore %20 %19
62%22 = OpFunctionCall %v4float %main %20
63OpStore %sk_FragColor %22
64OpReturn
65OpFunctionEnd
66%main = OpFunction %v4float None %23
67%24 = OpFunctionParameter %_ptr_Function_v2float
68%25 = OpLabel
69%u1 = OpVariable %_ptr_Function_uint Function
70%u2 = OpVariable %_ptr_Function_uint Function
71%u3 = OpVariable %_ptr_Function_uint Function
72%u4 = OpVariable %_ptr_Function_uint Function
73%u5 = OpVariable %_ptr_Function_uint Function
74OpStore %u1 %uint_0
75%30 = OpLoad %uint %u1
76%32 = OpIAdd %uint %30 %uint_1
77OpStore %u1 %32
78OpStore %u2 %uint_305441741
79%35 = OpLoad %uint %u2
80%36 = OpIAdd %uint %35 %uint_1
81OpStore %u2 %36
82OpStore %u3 %uint_2147483646
83%39 = OpLoad %uint %u3
84%40 = OpIAdd %uint %39 %uint_1
85OpStore %u3 %40
86OpStore %u4 %uint_4294967294
87%43 = OpLoad %uint %u4
88%44 = OpIAdd %uint %43 %uint_1
89OpStore %u4 %44
90OpStore %u5 %uint_65534
91%47 = OpLoad %uint %u5
92%48 = OpIAdd %uint %47 %uint_1
93OpStore %u5 %48
94%49 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
95%53 = OpLoad %v4float %49
96OpReturnValue %53
97OpFunctionEnd
98