• 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"
10OpMemberName %_UniformBuffer 1 "colorRed"
11OpName %_entrypoint_v "_entrypoint_v"
12OpName %main "main"
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
19OpMemberDecorate %_UniformBuffer 1 Offset 16
20OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
21OpDecorate %_UniformBuffer Block
22OpDecorate %10 Binding 0
23OpDecorate %10 DescriptorSet 0
24OpDecorate %30 RelaxedPrecision
25%float = OpTypeFloat 32
26%v4float = OpTypeVector %float 4
27%_ptr_Output_v4float = OpTypePointer Output %v4float
28%sk_FragColor = OpVariable %_ptr_Output_v4float Output
29%bool = OpTypeBool
30%_ptr_Input_bool = OpTypePointer Input %bool
31%sk_Clockwise = OpVariable %_ptr_Input_bool Input
32%_UniformBuffer = OpTypeStruct %v4float %v4float
33%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
34%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
35%void = OpTypeVoid
36%15 = OpTypeFunction %void
37%v2float = OpTypeVector %float 2
38%float_0 = OpConstant %float 0
39%19 = OpConstantComposite %v2float %float_0 %float_0
40%_ptr_Function_v2float = OpTypePointer Function %v2float
41%23 = OpTypeFunction %v4float %_ptr_Function_v2float
42%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
43%int = OpTypeInt 32 1
44%int_0 = OpConstant %int 0
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%26 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
57%30 = OpLoad %v4float %26
58OpReturnValue %30
59OpFunctionEnd
60