mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-28 10:00:15 +00:00
Enable Vertex Input Binding Stride extended state when available on newer MVK
This commit is contained in:
parent
381abda2c8
commit
2a3069d9a1
3 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
{
|
||||
if (_count != 0)
|
||||
{
|
||||
if (_gd.Capabilities.SupportsExtendedDynamicState && !_gd.IsMoltenVk)
|
||||
if (_gd.Capabilities.SupportsExtendedDynamicState && (_gd.SupportsMTL31 || !_gd.IsMoltenVk))
|
||||
{
|
||||
_gd.ExtendedDynamicStateApi.CmdBindVertexBuffers2(
|
||||
cbs.CommandBuffer,
|
||||
|
|
|
@ -91,6 +91,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
internal bool IsIntelArc { get; private set; }
|
||||
internal bool IsQualcommProprietary { get; private set; }
|
||||
internal bool IsMoltenVk { get; private set; }
|
||||
internal bool SupportsMTL31 { get; private set; }
|
||||
internal bool IsTBDR { get; private set; }
|
||||
internal bool IsSharedMemory { get; private set; }
|
||||
|
||||
|
@ -119,6 +120,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
// Any device running on MacOS is using MoltenVK, even Intel and AMD vendors.
|
||||
IsMoltenVk = true;
|
||||
|
||||
SupportsMTL31 = OperatingSystem.IsMacOSVersionAtLeast(14);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue