xref: /aosp_15_r20/external/skia/tests/sksl/shared/SwizzleLTRB.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor
5               OpExecutionMode %_entrypoint_v OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %_UniformBuffer "_UniformBuffer"
8               OpMemberName %_UniformBuffer 0 "colorRed"
9               OpName %_entrypoint_v "_entrypoint_v"
10               OpName %main "main"
11               OpDecorate %sk_FragColor RelaxedPrecision
12               OpDecorate %sk_FragColor Location 0
13               OpDecorate %sk_FragColor Index 0
14               OpMemberDecorate %_UniformBuffer 0 Offset 0
15               OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
16               OpDecorate %_UniformBuffer Block
17               OpDecorate %7 Binding 0
18               OpDecorate %7 DescriptorSet 0
19               OpDecorate %27 RelaxedPrecision
20               OpDecorate %28 RelaxedPrecision
21      %float = OpTypeFloat 32
22    %v4float = OpTypeVector %float 4
23%_ptr_Output_v4float = OpTypePointer Output %v4float
24%sk_FragColor = OpVariable %_ptr_Output_v4float Output
25%_UniformBuffer = OpTypeStruct %v4float
26%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
27          %7 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
28       %void = OpTypeVoid
29         %12 = OpTypeFunction %void
30    %float_0 = OpConstant %float 0
31    %v2float = OpTypeVector %float 2
32         %16 = OpConstantComposite %v2float %float_0 %float_0
33%_ptr_Function_v2float = OpTypePointer Function %v2float
34         %20 = OpTypeFunction %v4float %_ptr_Function_v2float
35%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
36        %int = OpTypeInt 32 1
37      %int_0 = OpConstant %int 0
38%_entrypoint_v = OpFunction %void None %12
39         %13 = OpLabel
40         %17 = OpVariable %_ptr_Function_v2float Function
41               OpStore %17 %16
42         %19 = OpFunctionCall %v4float %main %17
43               OpStore %sk_FragColor %19
44               OpReturn
45               OpFunctionEnd
46       %main = OpFunction %v4float None %20
47         %21 = OpFunctionParameter %_ptr_Function_v2float
48         %22 = OpLabel
49         %23 = OpAccessChain %_ptr_Uniform_v4float %7 %int_0
50         %27 = OpLoad %v4float %23
51         %28 = OpVectorShuffle %v4float %27 %27 2 3 1 0
52               OpReturnValue %28
53               OpFunctionEnd
54