Texture.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Ryujinx.Graphics.Gal;
  2. namespace Ryujinx.Graphics.Gpu
  3. {
  4. struct Texture
  5. {
  6. public long Position { get; private set; }
  7. public int Width { get; private set; }
  8. public int Height { get; private set; }
  9. public int Pitch { get; private set; }
  10. public int BlockHeight { get; private set; }
  11. public TextureSwizzle Swizzle { get; private set; }
  12. public GalTextureFormat Format { get; private set; }
  13. public Texture(
  14. long Position,
  15. int Width,
  16. int Height,
  17. int Pitch,
  18. int BlockHeight,
  19. TextureSwizzle Swizzle,
  20. GalTextureFormat Format)
  21. {
  22. this.Position = Position;
  23. this.Width = Width;
  24. this.Height = Height;
  25. this.Pitch = Pitch;
  26. this.BlockHeight = BlockHeight;
  27. this.Swizzle = Swizzle;
  28. this.Format = Format;
  29. }
  30. }
  31. }