IGalRasterizer.cs 838 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. namespace Ryujinx.Graphics.Gal
  3. {
  4. public interface IGalRasterizer
  5. {
  6. void LockCaches();
  7. void UnlockCaches();
  8. void ClearBuffers(
  9. GalClearBufferFlags Flags,
  10. int Attachment,
  11. float Red, float Green, float Blue, float Alpha,
  12. float Depth,
  13. int Stencil);
  14. bool IsVboCached(long Key, long DataSize);
  15. bool IsIboCached(long Key, long DataSize);
  16. void CreateVbo(long Key, int DataSize, IntPtr HostAddress);
  17. void CreateIbo(long Key, int DataSize, IntPtr HostAddress);
  18. void SetIndexArray(int Size, GalIndexFormat Format);
  19. void DrawArrays(int First, int PrimCount, GalPrimitiveType PrimType);
  20. void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
  21. }
  22. }