IGalShader.cs 638 B

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