VertexBufferState.cs 373 B

12345678910111213141516171819
  1. namespace Ryujinx.Graphics.Gpu.State
  2. {
  3. struct VertexBufferState
  4. {
  5. public uint Control;
  6. public GpuVa Address;
  7. public int Divisor;
  8. public int UnpackStride()
  9. {
  10. return (int)(Control & 0xfff);
  11. }
  12. public bool UnpackEnable()
  13. {
  14. return (Control & (1 << 12)) != 0;
  15. }
  16. }
  17. }