mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-02-18 13:28:16 -06:00

* Add blend microcode registers * Add advanced blend support using host extension * Remove debug message * Use pre-generated table for blend functions * XML docs * Rename AdvancedBlendMode to AdvancedBlendOp for consistency * Remove redundant code * Fix some advanced blend related issues on Vulkan * Formatting
19 lines
599 B
C#
19 lines
599 B
C#
namespace Ryujinx.Graphics.GAL.Multithreading.Commands
|
|
{
|
|
struct SetBlendStateAdvancedCommand : IGALCommand, IGALCommand<SetBlendStateAdvancedCommand>
|
|
{
|
|
public CommandType CommandType => CommandType.SetBlendStateAdvanced;
|
|
private AdvancedBlendDescriptor _blend;
|
|
|
|
public void Set(AdvancedBlendDescriptor blend)
|
|
{
|
|
_blend = blend;
|
|
}
|
|
|
|
public static void Run(ref SetBlendStateAdvancedCommand command, ThreadedRenderer threaded, IRenderer renderer)
|
|
{
|
|
renderer.Pipeline.SetBlendState(command._blend);
|
|
}
|
|
}
|
|
}
|