Viewport.cs 964 B

123456789101112131415161718192021222324252627282930313233
  1. namespace Ryujinx.Graphics.GAL
  2. {
  3. public readonly struct Viewport
  4. {
  5. public Rectangle<float> Region { get; }
  6. public ViewportSwizzle SwizzleX { get; }
  7. public ViewportSwizzle SwizzleY { get; }
  8. public ViewportSwizzle SwizzleZ { get; }
  9. public ViewportSwizzle SwizzleW { get; }
  10. public float DepthNear { get; }
  11. public float DepthFar { get; }
  12. public Viewport(
  13. Rectangle<float> region,
  14. ViewportSwizzle swizzleX,
  15. ViewportSwizzle swizzleY,
  16. ViewportSwizzle swizzleZ,
  17. ViewportSwizzle swizzleW,
  18. float depthNear,
  19. float depthFar)
  20. {
  21. Region = region;
  22. SwizzleX = swizzleX;
  23. SwizzleY = swizzleY;
  24. SwizzleZ = swizzleZ;
  25. SwizzleW = swizzleW;
  26. DepthNear = depthNear;
  27. DepthFar = depthFar;
  28. }
  29. }
  30. }