2018-06-23 17:39:25 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
{
|
|
|
|
public interface IGalShader
|
|
|
|
{
|
|
|
|
void Create(IGalMemory Memory, long Key, GalShaderType Type);
|
|
|
|
|
2018-06-27 19:55:08 -07:00
|
|
|
void Create(IGalMemory Memory, long VpAPos, long Key, GalShaderType Type);
|
|
|
|
|
2018-06-23 17:39:25 -07:00
|
|
|
IEnumerable<ShaderDeclInfo> GetTextureUsage(long Key);
|
|
|
|
|
|
|
|
void SetConstBuffer(long Key, int Cbuf, byte[] Data);
|
|
|
|
|
|
|
|
void EnsureTextureBinding(string UniformName, int Value);
|
|
|
|
|
|
|
|
void SetFlip(float X, float Y);
|
|
|
|
|
|
|
|
void Bind(long Key);
|
|
|
|
|
2018-07-14 09:08:39 -07:00
|
|
|
void Unbind(GalShaderType Type);
|
|
|
|
|
2018-06-23 17:39:25 -07:00
|
|
|
void BindProgram();
|
|
|
|
}
|
|
|
|
}
|