Missed enabling Dynamic State
This commit is contained in:
parent
5d5f482d57
commit
8bb369f37d
2 changed files with 9 additions and 2 deletions
|
@ -899,8 +899,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
public void SetDepthMode(DepthMode mode)
|
public void SetDepthMode(DepthMode mode)
|
||||||
{
|
{
|
||||||
bool oldMode;
|
bool oldMode;
|
||||||
bool supportsDepthClipandDynamicState = Gd.Capabilities.SupportsDepthClipControl &&
|
bool supportsDepthClipandDynamicState = Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne;
|
||||||
Gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne;
|
|
||||||
if (supportsDepthClipandDynamicState)
|
if (supportsDepthClipandDynamicState)
|
||||||
{
|
{
|
||||||
oldMode = DynamicState.DepthMode;
|
oldMode = DynamicState.DepthMode;
|
||||||
|
|
|
@ -637,6 +637,10 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
additionalDynamicStatesCount++;
|
additionalDynamicStatesCount++;
|
||||||
}
|
}
|
||||||
|
if (gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||||
|
{
|
||||||
|
additionalDynamicStatesCount++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int dynamicStatesCount = baseDynamicStatesCount + additionalDynamicStatesCount;
|
int dynamicStatesCount = baseDynamicStatesCount + additionalDynamicStatesCount;
|
||||||
|
@ -710,6 +714,10 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
{
|
{
|
||||||
dynamicStates[currentIndex++] = DynamicState.AlphaToOneEnableExt;
|
dynamicStates[currentIndex++] = DynamicState.AlphaToOneEnableExt;
|
||||||
}
|
}
|
||||||
|
if (gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
|
||||||
|
{
|
||||||
|
dynamicStates[currentIndex++] = DynamicState.DepthClipNegativeOneToOneExt;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var pipelineDynamicStateCreateInfo = new PipelineDynamicStateCreateInfo
|
var pipelineDynamicStateCreateInfo = new PipelineDynamicStateCreateInfo
|
||||||
|
|
Loading…
Reference in a new issue