Implement clear buffer (fast path) (#1902)
* Implement clear buffer (fast path) * Remove blank line
This commit is contained in:
parent
68f6b79fd3
commit
df820a72de
8 changed files with 125 additions and 5 deletions
|
@ -9,6 +9,42 @@ namespace Ryujinx.Graphics.Gpu.State
|
|||
public uint Swizzle;
|
||||
#pragma warning restore CS0649
|
||||
|
||||
/// <summary>
|
||||
/// Unpacks the source for the buffer destination vector X component.
|
||||
/// </summary>
|
||||
/// <returns>Destination component</returns>
|
||||
public BufferSwizzleComponent UnpackDstX()
|
||||
{
|
||||
return (BufferSwizzleComponent)(Swizzle & 7);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unpacks the source for the buffer destination vector Y component.
|
||||
/// </summary>
|
||||
/// <returns>Destination component</returns>
|
||||
public BufferSwizzleComponent UnpackDstY()
|
||||
{
|
||||
return (BufferSwizzleComponent)((Swizzle >> 4) & 7);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unpacks the source for the buffer destination vector Z component.
|
||||
/// </summary>
|
||||
/// <returns>Destination component</returns>
|
||||
public BufferSwizzleComponent UnpackDstZ()
|
||||
{
|
||||
return (BufferSwizzleComponent)((Swizzle >> 8) & 7);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unpacks the source for the buffer destination vector W component.
|
||||
/// </summary>
|
||||
/// <returns>Destination component</returns>
|
||||
public BufferSwizzleComponent UnpackDstW()
|
||||
{
|
||||
return (BufferSwizzleComponent)((Swizzle >> 12) & 7);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unpacks the size of each vector component of the copy.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue