aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-31 13:32:06 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commitd1c0a64e6a60b5c6f288c5d152e4f35fb587d988 (patch)
tree50a9f4fe9764715e3c2ff2b44e038533017324d1 /Ryujinx.Graphics.Gpu/State/ViewportTransform.cs
parent430faeb8ef9a5906af642a4a2be0eb6e878f812e (diff)
Add XML documentation to Ryujinx.Graphics.Gpu.State
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/ViewportTransform.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/State/ViewportTransform.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs b/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs
index 335b039c..c7db311d 100644
--- a/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs
+++ b/Ryujinx.Graphics.Gpu/State/ViewportTransform.cs
@@ -2,6 +2,9 @@ using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.Gpu.State
{
+ /// <summary>
+ /// Viewport transform parameters, for viewport transformation.
+ /// </summary>
struct ViewportTransform
{
public float ScaleX;
@@ -13,21 +16,37 @@ namespace Ryujinx.Graphics.Gpu.State
public uint Swizzle;
public uint SubpixelPrecisionBias;
+ /// <summary>
+ /// Unpacks viewport swizzle of the position X component.
+ /// </summary>
+ /// <returns>Swizzle enum value</returns>
public ViewportSwizzle UnpackSwizzleX()
{
return (ViewportSwizzle)(Swizzle & 7);
}
+ /// <summary>
+ /// Unpacks viewport swizzle of the position Y component.
+ /// </summary>
+ /// <returns>Swizzle enum value</returns>
public ViewportSwizzle UnpackSwizzleY()
{
return (ViewportSwizzle)((Swizzle >> 4) & 7);
}
+ /// <summary>
+ /// Unpacks viewport swizzle of the position Z component.
+ /// </summary>
+ /// <returns>Swizzle enum value</returns>
public ViewportSwizzle UnpackSwizzleZ()
{
return (ViewportSwizzle)((Swizzle >> 8) & 7);
}
+ /// <summary>
+ /// Unpacks viewport swizzle of the position W component.
+ /// </summary>
+ /// <returns>Swizzle enum value</returns>
public ViewportSwizzle UnpackSwizzleW()
{
return (ViewportSwizzle)((Swizzle >> 12) & 7);