Rasterizer Discard + Multisample State
This commit is contained in:
parent
6e3aaa6360
commit
bdb00f3981
3 changed files with 20 additions and 8 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue