xref: /aosp_15_r20/external/skia/tests/sksl/shared/ConstArray.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 %_entrypoint_v "_entrypoint_v"
8               OpName %main "main"
9               OpDecorate %sk_FragColor RelaxedPrecision
10               OpDecorate %sk_FragColor Location 0
11               OpDecorate %sk_FragColor Index 0
12      %float = OpTypeFloat 32
13    %v4float = OpTypeVector %float 4
14%_ptr_Output_v4float = OpTypePointer Output %v4float
15%sk_FragColor = OpVariable %_ptr_Output_v4float Output
16       %void = OpTypeVoid
17          %9 = OpTypeFunction %void
18    %float_0 = OpConstant %float 0
19    %v2float = OpTypeVector %float 2
20         %13 = OpConstantComposite %v2float %float_0 %float_0
21%_ptr_Function_v2float = OpTypePointer Function %v2float
22         %17 = OpTypeFunction %v4float %_ptr_Function_v2float
23    %float_1 = OpConstant %float 1
24         %21 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1
25%_entrypoint_v = OpFunction %void None %9
26         %10 = OpLabel
27         %14 = OpVariable %_ptr_Function_v2float Function
28               OpStore %14 %13
29         %16 = OpFunctionCall %v4float %main %14
30               OpStore %sk_FragColor %16
31               OpReturn
32               OpFunctionEnd
33       %main = OpFunction %v4float None %17
34         %18 = OpFunctionParameter %_ptr_Function_v2float
35         %19 = OpLabel
36               OpReturnValue %21
37               OpFunctionEnd
38