IGalShader.cs 603 B

12345678910111213141516171819202122232425
  1. using System.Collections.Generic;
  2. namespace Ryujinx.Graphics.Gal
  3. {
  4. public interface IGalShader
  5. {
  6. void Create(IGalMemory Memory, long Key, GalShaderType Type);
  7. void Create(IGalMemory Memory, long VpAPos, long Key, GalShaderType Type);
  8. IEnumerable<ShaderDeclInfo> GetTextureUsage(long Key);
  9. void SetConstBuffer(long Key, int Cbuf, byte[] Data);
  10. void EnsureTextureBinding(string UniformName, int Value);
  11. void SetFlip(float X, float Y);
  12. void Bind(long Key);
  13. void Unbind(GalShaderType Type);
  14. void BindProgram();
  15. }
  16. }