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. }