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