mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2026-02-12 11:57:17 -05:00
Rasterizer Discard + Multisample State
This commit is contained in:
committed by
Evan Husted
parent
782299c123
commit
4a11cc9c7a
@@ -399,6 +399,13 @@ namespace Ryujinx.Graphics.Metal
|
||||
}
|
||||
}
|
||||
|
||||
public readonly void UpdateRasterizerDiscard(bool discard)
|
||||
{
|
||||
_currentState.Pipeline.RasterizerDiscardEnable = discard;
|
||||
|
||||
SignalDirty(DirtyFlags.RenderPipeline);
|
||||
}
|
||||
|
||||
public readonly void UpdateRenderTargets(ITexture[] colors, ITexture depthStencil)
|
||||
{
|
||||
_currentState.FramebufferUsingColorWriteMask = false;
|
||||
@@ -656,6 +663,14 @@ namespace Ryujinx.Graphics.Metal
|
||||
SignalDirty(DirtyFlags.DepthBias);
|
||||
}
|
||||
|
||||
public readonly void UpdateMultisampleState(MultisampleDescriptor multisample)
|
||||
{
|
||||
_currentState.Pipeline.AlphaToCoverageEnable = multisample.AlphaToCoverageEnable;
|
||||
_currentState.Pipeline.AlphaToOneEnable = multisample.AlphaToOneEnable;
|
||||
|
||||
SignalDirty(DirtyFlags.RenderPipeline);
|
||||
}
|
||||
|
||||
public void UpdateScissors(ReadOnlySpan<Rectangle<int>> regions)
|
||||
{
|
||||
for (int i = 0; i < regions.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user