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