DrawState.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Ryujinx.Graphics.GAL;
  2. namespace Ryujinx.Graphics.Gpu.Engine.Threed
  3. {
  4. /// <summary>
  5. /// Draw state.
  6. /// </summary>
  7. class DrawState
  8. {
  9. /// <summary>
  10. /// First index to be used for the draw on the index buffer.
  11. /// </summary>
  12. public int FirstIndex;
  13. /// <summary>
  14. /// Number of indices to be used for the draw on the index buffer.
  15. /// </summary>
  16. public int IndexCount;
  17. /// <summary>
  18. /// Indicates if the next draw will be a indexed draw.
  19. /// </summary>
  20. public bool DrawIndexed;
  21. /// <summary>
  22. /// Indicates if any of the currently used vertex shaders reads the instance ID.
  23. /// </summary>
  24. public bool VsUsesInstanceId;
  25. /// <summary>
  26. /// Indicates if any of the currently used vertex buffers is instanced.
  27. /// </summary>
  28. public bool IsAnyVbInstanced;
  29. /// <summary>
  30. /// Primitive topology for the next draw.
  31. /// </summary>
  32. public PrimitiveTopology Topology;
  33. /// <summary>
  34. /// Index buffer data streamer for inline index buffer updates, such as those used in legacy OpenGL.
  35. /// </summary>
  36. public IbStreamer IbStreamer = new IbStreamer();
  37. }
  38. }