Enable Vertex Input Binding Stride extended state when available on newer MVK

This commit is contained in:
sunshineinabox 2024-09-09 11:02:07 -07:00
parent 381abda2c8
commit 2a3069d9a1
3 changed files with 7 additions and 3 deletions

View file

@ -632,9 +632,10 @@ namespace Ryujinx.Graphics.Vulkan
if (_supportsExtDynamicState)
{
if (!isMoltenVk)
if (gd.SupportsMTL31 || gd.IsMoltenVk)
{
//Requires Metal 3.1 and new MoltenVK
//Requires Metal 3.1 and new MoltenVK however extended dynamic states extension is not
//available on older verrsion of MVK so we can safely check only OS version
dynamicStates[dynamicStatesCount++] = DynamicState.VertexInputBindingStrideExt;
}
dynamicStates[0] = DynamicState.ViewportWithCountExt;