GalVertexAttrib.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. namespace Ryujinx.Graphics.Gal
  3. {
  4. public struct GalVertexAttrib
  5. {
  6. public int Index { get; private set; }
  7. public bool IsConst { get; private set; }
  8. public int Offset { get; private set; }
  9. public IntPtr Pointer { get; private set; }
  10. public GalVertexAttribSize Size { get; private set; }
  11. public GalVertexAttribType Type { get; private set; }
  12. public bool IsBgra { get; private set; }
  13. public GalVertexAttrib(
  14. int Index,
  15. bool IsConst,
  16. int Offset,
  17. IntPtr Pointer,
  18. GalVertexAttribSize Size,
  19. GalVertexAttribType Type,
  20. bool IsBgra)
  21. {
  22. this.Index = Index;
  23. this.IsConst = IsConst;
  24. this.Pointer = Pointer;
  25. this.Offset = Offset;
  26. this.Size = Size;
  27. this.Type = Type;
  28. this.IsBgra = IsBgra;
  29. }
  30. }
  31. }