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