IGalRasterizer.cs 867 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Ryujinx.Graphics.Gal
  2. {
  3. public interface IGalRasterizer
  4. {
  5. void ClearBuffers(GalClearBufferFlags Flags);
  6. bool IsVboCached(long Key, long DataSize);
  7. bool IsIboCached(long Key, long DataSize);
  8. void EnableCullFace();
  9. void DisableCullFace();
  10. void EnableDepthTest();
  11. void DisableDepthTest();
  12. void SetDepthFunction(GalComparisonOp Func);
  13. void CreateVbo(long Key, byte[] Buffer);
  14. void CreateIbo(long Key, byte[] Buffer);
  15. void SetVertexArray(int VbIndex, int Stride, long VboKey, GalVertexAttrib[] Attribs);
  16. void SetIndexArray(long Key, int Size, GalIndexFormat Format);
  17. void DrawArrays(int First, int PrimCount, GalPrimitiveType PrimType);
  18. void DrawElements(long IboKey, int First, int VertexBase, GalPrimitiveType PrimType);
  19. }
  20. }