Implement VK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
This commit is contained in:
parent
3fe159f4dd
commit
ecadc6a4f9
4 changed files with 47 additions and 5 deletions
|
@ -898,9 +898,19 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public void SetDepthMode(DepthMode mode)
|
||||
{
|
||||
bool oldMode = _newState.DepthMode;
|
||||
_newState.DepthMode = mode == DepthMode.MinusOneToOne;
|
||||
if (_newState.DepthMode != oldMode)
|
||||
bool oldMode;
|
||||
if (Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||
{
|
||||
oldMode = DynamicState.DepthMode;
|
||||
DynamicState.SetDepthMode(mode == DepthMode.MinusOneToOne);
|
||||
}
|
||||
else
|
||||
{
|
||||
oldMode = _newState.DepthMode;
|
||||
_newState.DepthMode = mode == DepthMode.MinusOneToOne;
|
||||
}
|
||||
|
||||
if ((Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne ? DynamicState.DepthMode : _newState.DepthMode) != oldMode)
|
||||
{
|
||||
SignalStateChange();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue