aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/ITexture.cs
blob: 592c0482dcf52303537a6a9fa54411b801e79b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Ryujinx.Graphics.GAL.Texture;
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);
    }
}