namespace Ryujinx.Graphics.Gpu.State
{
/// <summary>
/// Buffer to buffer copy vector swizzle parameters.
/// </summary>
struct CopyBufferSwizzle
#pragma warning disable CS0649
public uint Swizzle;
#pragma warning restore CS0649
/// Unpacks the size of each vector component of the copy.
/// <returns>Vector component size</returns>
public int UnpackComponentSize()
return (int)((Swizzle >> 16) & 3) + 1;
}
/// Unpacks the number of components of the source vector of the copy.
/// <returns>Number of vector components</returns>
public int UnpackSrcComponentsCount()
return (int)((Swizzle >> 20) & 7) + 1;
/// Unpacks the number of components of the destination vector of the copy.
public int UnpackDstComponentsCount()
return (int)((Swizzle >> 24) & 7) + 1;