mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 09:08:39 +00:00
24 lines
797 B
C#
24 lines
797 B
C#
|
using Ryujinx.Graphics.GAL.Multithreading.Model;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Ryujinx.Graphics.GAL.Multithreading.Commands
|
|||
|
{
|
|||
|
struct SetRenderTargetColorMasksCommand : IGALCommand
|
|||
|
{
|
|||
|
public CommandType CommandType => CommandType.SetRenderTargetColorMasks;
|
|||
|
private SpanRef<uint> _componentMask;
|
|||
|
|
|||
|
public void Set(SpanRef<uint> componentMask)
|
|||
|
{
|
|||
|
_componentMask = componentMask;
|
|||
|
}
|
|||
|
|
|||
|
public static void Run(ref SetRenderTargetColorMasksCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|||
|
{
|
|||
|
ReadOnlySpan<uint> componentMask = command._componentMask.Get(threaded);
|
|||
|
renderer.Pipeline.SetRenderTargetColorMasks(componentMask);
|
|||
|
command._componentMask.Dispose(threaded);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|