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

namespace Ryujinx.Graphics.GAL
{
    public interface ITexture : IDisposable
    {
        int Handle { get; }

        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);

        int GetStorageDebugId();

        byte[] GetData();

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