aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/ITexture.cs
blob: 5278e3b74da141f225dc3574e0687a7490dde089 (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(ReadOnlySpan<byte> data);
    }
}