mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 10:05:25 +00:00
25 lines
814 B
C#
25 lines
814 B
C#
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands
|
|||
|
{
|
|||
|
struct ClearBufferCommand : IGALCommand
|
|||
|
{
|
|||
|
public CommandType CommandType => CommandType.ClearBuffer;
|
|||
|
private BufferHandle _destination;
|
|||
|
private int _offset;
|
|||
|
private int _size;
|
|||
|
private uint _value;
|
|||
|
|
|||
|
public void Set(BufferHandle destination, int offset, int size, uint value)
|
|||
|
{
|
|||
|
_destination = destination;
|
|||
|
_offset = offset;
|
|||
|
_size = size;
|
|||
|
_value = value;
|
|||
|
}
|
|||
|
|
|||
|
public static void Run(ref ClearBufferCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|||
|
{
|
|||
|
renderer.Pipeline.ClearBuffer(threaded.Buffers.MapBuffer(command._destination), command._offset, command._size, command._value);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|