2018-06-24 02:39:25 +02:00
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
|
|
|
public interface IGalTexture
|
|
|
|
{
|
2018-07-10 04:01:59 +02:00
|
|
|
void LockCache();
|
|
|
|
void UnlockCache();
|
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
void Create(long key, int size, GalImage image);
|
2018-06-24 02:39:25 +02:00
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
void Create(long key, byte[] data, GalImage image);
|
2018-08-20 03:25:26 +02:00
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
bool TryGetImage(long key, out GalImage image);
|
2018-06-24 02:39:25 +02:00
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
void Bind(long key, int index, GalImage image);
|
2018-06-24 02:39:25 +02:00
|
|
|
|
2019-03-04 02:45:25 +01:00
|
|
|
void SetSampler(GalImage image, GalTextureSampler sampler);
|
2018-06-24 02:39:25 +02:00
|
|
|
}
|
|
|
|
}
|