2019-10-13 02:02:07 -04:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.GAL
|
|
|
|
{
|
|
|
|
public interface IBuffer : IDisposable
|
|
|
|
{
|
|
|
|
void CopyTo(IBuffer destination, int srcOffset, int dstOffset, int size);
|
|
|
|
|
|
|
|
byte[] GetData(int offset, int size);
|
|
|
|
|
2020-01-12 18:27:50 -05:00
|
|
|
void SetData(ReadOnlySpan<byte> data);
|
2019-10-13 02:02:07 -04:00
|
|
|
|
2020-01-12 18:27:50 -05:00
|
|
|
void SetData(int offset, ReadOnlySpan<byte> data);
|
2019-10-13 02:02:07 -04:00
|
|
|
}
|
|
|
|
}
|