• 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 "colorRed"
10OpName %_entrypoint_v "_entrypoint_v"
11OpName %main "main"
12OpDecorate %sk_FragColor RelaxedPrecision
13OpDecorate %sk_FragColor Location 0
14OpDecorate %sk_FragColor Index 0
15OpDecorate %sk_Clockwise BuiltIn FrontFacing
16OpMemberDecorate %_UniformBuffer 0 Offset 0
17OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
18OpDecorate %_UniformBuffer Block
19OpDecorate %10 Binding 0
20OpDecorate %10 DescriptorSet 0
21OpDecorate %30 RelaxedPrecision
22OpDecorate %31 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%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
41%int = OpTypeInt 32 1
42%int_0 = OpConstant %int 0
43%_entrypoint_v = OpFunction %void None %15
44%16 = OpLabel
45%20 = OpVariable %_ptr_Function_v2float Function
46OpStore %20 %19
47%22 = OpFunctionCall %v4float %main %20
48OpStore %sk_FragColor %22
49OpReturn
50OpFunctionEnd
51%main = OpFunction %v4float None %23
52%24 = OpFunctionParameter %_ptr_Function_v2float
53%25 = OpLabel
54%26 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
55%30 = OpLoad %v4float %26
56%31 = OpVectorShuffle %v4float %30 %30 2 3 1 0
57OpReturnValue %31
58OpFunctionEnd
59