• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_Clockwise %sk_FragColor
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %sk_FragColor "sk_FragColor"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "colorGreen"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpDecorate %sk_Clockwise BuiltIn FrontFacing
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpMemberDecorate %_UniformBuffer 0 Offset 0
17OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
18OpDecorate %_UniformBuffer Block
19OpDecorate %10 Binding 0
20OpDecorate %10 DescriptorSet 0
21OpDecorate %30 RelaxedPrecision
22%bool = OpTypeBool
23%_ptr_Input_bool = OpTypePointer Input %bool
24%sk_Clockwise = OpVariable %_ptr_Input_bool Input
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%_UniformBuffer = OpTypeStruct %v4float
30%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
31%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
32%void = OpTypeVoid
33%15 = OpTypeFunction %void
34%float_0 = OpConstant %float 0
35%v2float = OpTypeVector %float 2
36%19 = OpConstantComposite %v2float %float_0 %float_0
37%_ptr_Function_v2float = OpTypePointer Function %v2float
38%23 = OpTypeFunction %v4float %_ptr_Function_v2float
39%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
40%int = OpTypeInt 32 1
41%int_0 = OpConstant %int 0
42%_entrypoint_v = OpFunction %void None %15
43%16 = OpLabel
44%20 = OpVariable %_ptr_Function_v2float Function
45OpStore %20 %19
46%22 = OpFunctionCall %v4float %main %20
47OpStore %sk_FragColor %22
48OpReturn
49OpFunctionEnd
50%main = OpFunction %v4float None %23
51%24 = OpFunctionParameter %_ptr_Function_v2float
52%25 = OpLabel
53%26 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
54%30 = OpLoad %v4float %26
55OpReturnValue %30
56OpFunctionEnd
57