IGalRasterizer.cs 980 B

123456789101112131415161718192021222324252627282930313233343536
  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,
  12. float Green,
  13. float Blue,
  14. float Alpha,
  15. float Depth,
  16. int Stencil);
  17. bool IsVboCached(long Key, long DataSize);
  18. bool IsIboCached(long Key, long DataSize);
  19. void CreateVbo(long Key, int DataSize, IntPtr HostAddress);
  20. void CreateVbo(long Key, byte[] Data);
  21. void CreateIbo(long Key, int DataSize, IntPtr HostAddress);
  22. void CreateIbo(long Key, int DataSize, byte[] Buffer);
  23. void SetIndexArray(int Size, GalIndexFormat Format);
  24. void DrawArrays(int First, int Count, GalPrimitiveType PrimType);
  25. void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
  26. }
  27. }