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