• 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 %x "x"
13OpName %y "y"
14OpName %z "z"
15OpDecorate %sk_FragColor RelaxedPrecision
16OpDecorate %sk_FragColor Location 0
17OpDecorate %sk_FragColor Index 0
18OpDecorate %sk_Clockwise BuiltIn FrontFacing
19OpMemberDecorate %_UniformBuffer 0 Offset 0
20OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
21OpDecorate %_UniformBuffer Block
22OpDecorate %10 Binding 0
23OpDecorate %10 DescriptorSet 0
24OpDecorate %_arr_int_int_1 ArrayStride 16
25OpDecorate %40 RelaxedPrecision
26%float = OpTypeFloat 32
27%v4float = OpTypeVector %float 4
28%_ptr_Output_v4float = OpTypePointer Output %v4float
29%sk_FragColor = OpVariable %_ptr_Output_v4float Output
30%bool = OpTypeBool
31%_ptr_Input_bool = OpTypePointer Input %bool
32%sk_Clockwise = OpVariable %_ptr_Input_bool Input
33%_UniformBuffer = OpTypeStruct %v4float
34%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
35%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
36%void = OpTypeVoid
37%15 = OpTypeFunction %void
38%v2float = OpTypeVector %float 2
39%float_0 = OpConstant %float 0
40%19 = OpConstantComposite %v2float %float_0 %float_0
41%_ptr_Function_v2float = OpTypePointer Function %v2float
42%23 = OpTypeFunction %v4float %_ptr_Function_v2float
43%int = OpTypeInt 32 1
44%int_1 = OpConstant %int 1
45%_arr_int_int_1 = OpTypeArray %int %int_1
46%_ptr_Function__arr_int_int_1 = OpTypePointer Function %_arr_int_int_1
47%_ptr_Function_int = OpTypePointer Function %int
48%int_0 = OpConstant %int 0
49%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
50%_entrypoint_v = OpFunction %void None %15
51%16 = OpLabel
52%20 = OpVariable %_ptr_Function_v2float Function
53OpStore %20 %19
54%22 = OpFunctionCall %v4float %main %20
55OpStore %sk_FragColor %22
56OpReturn
57OpFunctionEnd
58%main = OpFunction %v4float None %23
59%24 = OpFunctionParameter %_ptr_Function_v2float
60%25 = OpLabel
61%x = OpVariable %_ptr_Function__arr_int_int_1 Function
62%y = OpVariable %_ptr_Function_int Function
63%z = OpVariable %_ptr_Function_int Function
64OpStore %y %int_0
65OpStore %z %int_0
66%35 = OpLoad %int %z
67OpStore %y %35
68%36 = OpAccessChain %_ptr_Function_int %x %35
69%37 = OpLoad %int %36
70%38 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
71%40 = OpLoad %v4float %38
72OpReturnValue %40
73OpFunctionEnd
74