Implement VK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT

This commit is contained in:
sunshineinabox 2024-05-18 21:46:22 -07:00
parent 3fe159f4dd
commit ecadc6a4f9
4 changed files with 47 additions and 5 deletions

View file

@ -513,9 +513,13 @@ namespace Ryujinx.Graphics.Vulkan
var viewportDepthClipControlState = new PipelineViewportDepthClipControlCreateInfoEXT
{
SType = StructureType.PipelineViewportDepthClipControlCreateInfoExt,
NegativeOneToOne = DepthMode,
};
if (!gd.ExtendedDynamicState3Features.ExtendedDynamicState3DepthClipNegativeOneToOne)
{
viewportDepthClipControlState.NegativeOneToOne = DepthMode;
}
viewportState.PNext = &viewportDepthClipControlState;
}