IGalRasterizer.cs 933 B

1234567891011121314151617181920212223242526272829303132333435
  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 CreateIbo(long Key, int DataSize, IntPtr HostAddress);
  21. void CreateIbo(long Key, int DataSize, byte[] Buffer);
  22. void SetIndexArray(int Size, GalIndexFormat Format);
  23. void DrawArrays(int First, int Count, GalPrimitiveType PrimType);
  24. void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
  25. }
  26. }