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