diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-31 13:32:06 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | d1c0a64e6a60b5c6f288c5d152e4f35fb587d988 (patch) | |
| tree | 50a9f4fe9764715e3c2ff2b44e038533017324d1 /Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs | |
| parent | 430faeb8ef9a5906af642a4a2be0eb6e878f812e (diff) | |
Add XML documentation to Ryujinx.Graphics.Gpu.State
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs b/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs index 24071372..5b3d7076 100644 --- a/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs +++ b/Ryujinx.Graphics.Gpu/State/CopyBufferSwizzle.cs @@ -1,19 +1,34 @@ namespace Ryujinx.Graphics.Gpu.State { + /// <summary> + /// Buffer to buffer copy vector swizzle parameters. + /// </summary> struct CopyBufferSwizzle { public uint Swizzle; + /// <summary> + /// Unpacks the size of each vector component of the copy. + /// </summary> + /// <returns>Vector component size</returns> public int UnpackComponentSize() { return (int)((Swizzle >> 16) & 3) + 1; } + /// <summary> + /// Unpacks the number of components of the source vector of the copy. + /// </summary> + /// <returns>Number of vector components</returns> public int UnpackSrcComponentsCount() { return (int)((Swizzle >> 20) & 7) + 1; } + /// <summary> + /// Unpacks the number of components of the destination vector of the copy. + /// </summary> + /// <returns>Number of vector components</returns> public int UnpackDstComponentsCount() { return (int)((Swizzle >> 24) & 7) + 1; |
