aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/ITexture.cs
blob: f5bc1b4705e828ee414cfc63a071e6b68f7d38f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;

namespace Ryujinx.Graphics.GAL
{
    public interface ITexture : IDisposable
    {
        void CopyTo(ITexture destination, int firstLayer, int firstLevel);
        void CopyTo(ITexture destination, Extents2D srcRegion, Extents2D dstRegion, bool linearFilter);

        ITexture CreateView(TextureCreateInfo info, int firstLayer, int firstLevel);

        byte[] GetData();

        void SetData(Span<byte> data);
    }
}