mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 15:26:40 +00:00
Formatting
This commit is contained in:
parent
ecadc6a4f9
commit
ab7f379e11
2 changed files with 5 additions and 5 deletions
|
@ -909,7 +909,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
oldMode = _newState.DepthMode;
|
||||
_newState.DepthMode = mode == DepthMode.MinusOneToOne;
|
||||
}
|
||||
|
||||
|
||||
if ((Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne ? DynamicState.DepthMode : _newState.DepthMode) != oldMode)
|
||||
{
|
||||
SignalStateChange();
|
||||
|
|
|
@ -318,7 +318,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
_dirty |= DirtyFlags.AlphaToOne;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetDepthMode(bool mode)
|
||||
{
|
||||
if (DepthMode != mode)
|
||||
|
@ -381,7 +381,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
_dirty &= ~DirtyFlags.LogicOpEnable;
|
||||
}
|
||||
|
||||
|
||||
if (!gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||
{
|
||||
_dirty &= ~DirtyFlags.DepthMode;
|
||||
|
@ -479,7 +479,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
RecordAlphaToOneEnable(gd, commandBuffer);
|
||||
}
|
||||
|
||||
|
||||
if (_dirty.HasFlag(DirtyFlags.DepthMode))
|
||||
{
|
||||
RecordDepthMode(gd, commandBuffer);
|
||||
|
@ -630,7 +630,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
gd.ExtendedDynamicState2Api.CmdSetPatchControlPoints(commandBuffer, _patchControlPoints);
|
||||
}
|
||||
|
||||
|
||||
private readonly void RecordDepthMode(VulkanRenderer gd, CommandBuffer commandBuffer)
|
||||
{
|
||||
gd.ExtendedDynamicState3Api.CmdSetDepthClipNegativeOneToOne(commandBuffer, DepthMode);
|
||||
|
|
Loading…
Reference in a new issue