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