• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "a"
10OpName %main "main"
11OpDecorate %sk_FragColor RelaxedPrecision
12OpDecorate %sk_FragColor Location 0
13OpDecorate %sk_FragColor Index 0
14OpDecorate %sk_Clockwise BuiltIn FrontFacing
15OpMemberDecorate %_UniformBuffer 0 Offset 0
16OpDecorate %_UniformBuffer Block
17OpDecorate %10 Binding 0
18OpDecorate %10 DescriptorSet 0
19OpDecorate %24 RelaxedPrecision
20OpDecorate %25 RelaxedPrecision
21OpDecorate %29 RelaxedPrecision
22OpDecorate %30 RelaxedPrecision
23OpDecorate %34 RelaxedPrecision
24OpDecorate %35 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%uint = OpTypeInt 32 0
33%_UniformBuffer = OpTypeStruct %uint
34%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
35%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
36%void = OpTypeVoid
37%15 = OpTypeFunction %void
38%_ptr_Uniform_uint = OpTypePointer Uniform %uint
39%int = OpTypeInt 32 1
40%int_0 = OpConstant %int 0
41%v2float = OpTypeVector %float 2
42%main = OpFunction %void None %15
43%16 = OpLabel
44%18 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
45%22 = OpLoad %uint %18
46%17 = OpExtInst %v2float %1 UnpackHalf2x16 %22
47%24 = OpLoad %v4float %sk_FragColor
48%25 = OpVectorShuffle %v4float %24 %17 4 5 2 3
49OpStore %sk_FragColor %25
50%27 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
51%28 = OpLoad %uint %27
52%26 = OpExtInst %v2float %1 UnpackUnorm2x16 %28
53%29 = OpLoad %v4float %sk_FragColor
54%30 = OpVectorShuffle %v4float %29 %26 4 5 2 3
55OpStore %sk_FragColor %30
56%32 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
57%33 = OpLoad %uint %32
58%31 = OpExtInst %v2float %1 UnpackSnorm2x16 %33
59%34 = OpLoad %v4float %sk_FragColor
60%35 = OpVectorShuffle %v4float %34 %31 4 5 2 3
61OpStore %sk_FragColor %35
62%37 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
63%38 = OpLoad %uint %37
64%36 = OpExtInst %v4float %1 UnpackUnorm4x8 %38
65OpStore %sk_FragColor %36
66%40 = OpAccessChain %_ptr_Uniform_uint %10 %int_0
67%41 = OpLoad %uint %40
68%39 = OpExtInst %v4float %1 UnpackSnorm4x8 %41
69OpStore %sk_FragColor %39
70OpReturn
71OpFunctionEnd
72