xref: /aosp_15_r20/external/skia/tests/sksl/shared/RectangleTexture.asm.frag (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1               OpCapability Shader
2          %1 = OpExtInstImport "GLSL.std.450"
3               OpMemoryModel Logical GLSL450
4               OpEntryPoint Fragment %main "main" %sk_FragColor
5               OpExecutionMode %main OriginUpperLeft
6               OpName %sk_FragColor "sk_FragColor"
7               OpName %test2D "test2D"
8               OpName %test2DRect "test2DRect"
9               OpName %main "main"
10               OpDecorate %sk_FragColor RelaxedPrecision
11               OpDecorate %sk_FragColor Location 0
12               OpDecorate %sk_FragColor Index 0
13               OpDecorate %test2D RelaxedPrecision
14               OpDecorate %test2D Binding 0
15               OpDecorate %test2D DescriptorSet 0
16               OpDecorate %test2DRect RelaxedPrecision
17               OpDecorate %test2DRect Binding 1
18               OpDecorate %test2DRect DescriptorSet 0
19               OpDecorate %16 RelaxedPrecision
20               OpDecorate %21 RelaxedPrecision
21               OpDecorate %23 RelaxedPrecision
22      %float = OpTypeFloat 32
23    %v4float = OpTypeVector %float 4
24%_ptr_Output_v4float = OpTypePointer Output %v4float
25%sk_FragColor = OpVariable %_ptr_Output_v4float Output
26          %8 = OpTypeImage %float 2D 0 0 0 1 Unknown
27          %9 = OpTypeSampledImage %8
28%_ptr_UniformConstant_9 = OpTypePointer UniformConstant %9
29     %test2D = OpVariable %_ptr_UniformConstant_9 UniformConstant
30 %test2DRect = OpVariable %_ptr_UniformConstant_9 UniformConstant
31       %void = OpTypeVoid
32         %13 = OpTypeFunction %void
33  %float_0_5 = OpConstant %float 0.5
34    %v2float = OpTypeVector %float 2
35         %19 = OpConstantComposite %v2float %float_0_5 %float_0_5
36    %v3float = OpTypeVector %float 3
37         %25 = OpConstantComposite %v3float %float_0_5 %float_0_5 %float_0_5
38       %main = OpFunction %void None %13
39         %14 = OpLabel
40         %16 = OpLoad %9 %test2D
41         %15 = OpImageSampleImplicitLod %v4float %16 %19
42               OpStore %sk_FragColor %15
43         %21 = OpLoad %9 %test2DRect
44         %20 = OpImageSampleImplicitLod %v4float %21 %19
45               OpStore %sk_FragColor %20
46         %23 = OpLoad %9 %test2DRect
47         %22 = OpImageSampleProjImplicitLod %v4float %23 %25
48               OpStore %sk_FragColor %22
49               OpReturn
50               OpFunctionEnd
51