diff options
Diffstat (limited to 'src/Ryujinx.Graphics.GAL/Rectangle.cs')
-rw-r--r-- | src/Ryujinx.Graphics.GAL/Rectangle.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Ryujinx.Graphics.GAL/Rectangle.cs b/src/Ryujinx.Graphics.GAL/Rectangle.cs new file mode 100644 index 00000000..c8fa93d9 --- /dev/null +++ b/src/Ryujinx.Graphics.GAL/Rectangle.cs @@ -0,0 +1,18 @@ +namespace Ryujinx.Graphics.GAL +{ + public readonly struct Rectangle<T> where T : unmanaged + { + public T X { get; } + public T Y { get; } + public T Width { get; } + public T Height { get; } + + public Rectangle(T x, T y, T width, T height) + { + X = x; + Y = y; + Width = width; + Height = height; + } + } +} |