mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +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;
|
oldMode = _newState.DepthMode;
|
||||||
_newState.DepthMode = mode == DepthMode.MinusOneToOne;
|
_newState.DepthMode = mode == DepthMode.MinusOneToOne;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne ? DynamicState.DepthMode : _newState.DepthMode) != oldMode)
|
if ((Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne ? DynamicState.DepthMode : _newState.DepthMode) != oldMode)
|
||||||
{
|
{
|
||||||
SignalStateChange();
|
SignalStateChange();
|
||||||
|
|
|
@ -318,7 +318,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
_dirty |= DirtyFlags.AlphaToOne;
|
_dirty |= DirtyFlags.AlphaToOne;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetDepthMode(bool mode)
|
public void SetDepthMode(bool mode)
|
||||||
{
|
{
|
||||||
if (DepthMode != mode)
|
if (DepthMode != mode)
|
||||||
|
@ -381,7 +381,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
_dirty &= ~DirtyFlags.LogicOpEnable;
|
_dirty &= ~DirtyFlags.LogicOpEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
if (!gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||||
{
|
{
|
||||||
_dirty &= ~DirtyFlags.DepthMode;
|
_dirty &= ~DirtyFlags.DepthMode;
|
||||||
|
@ -479,7 +479,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
RecordAlphaToOneEnable(gd, commandBuffer);
|
RecordAlphaToOneEnable(gd, commandBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_dirty.HasFlag(DirtyFlags.DepthMode))
|
if (_dirty.HasFlag(DirtyFlags.DepthMode))
|
||||||
{
|
{
|
||||||
RecordDepthMode(gd, commandBuffer);
|
RecordDepthMode(gd, commandBuffer);
|
||||||
|
@ -630,7 +630,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
gd.ExtendedDynamicState2Api.CmdSetPatchControlPoints(commandBuffer, _patchControlPoints);
|
gd.ExtendedDynamicState2Api.CmdSetPatchControlPoints(commandBuffer, _patchControlPoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly void RecordDepthMode(VulkanRenderer gd, CommandBuffer commandBuffer)
|
private readonly void RecordDepthMode(VulkanRenderer gd, CommandBuffer commandBuffer)
|
||||||
{
|
{
|
||||||
gd.ExtendedDynamicState3Api.CmdSetDepthClipNegativeOneToOne(commandBuffer, DepthMode);
|
gd.ExtendedDynamicState3Api.CmdSetDepthClipNegativeOneToOne(commandBuffer, DepthMode);
|
||||||
|
|
Loading…
Reference in a new issue