Avoid setting stride if dynamic state is supported

This commit is contained in:
sunshineinabox 2024-09-09 21:17:44 -07:00
parent f085b47b30
commit 2fd093d4b4
4 changed files with 15 additions and 9 deletions

View file

@ -466,7 +466,7 @@ namespace Ryujinx.Graphics.Vulkan
bool isMoltenVk = gd.IsMoltenVk;
if (isMoltenVk)
if (isMoltenVk && !_supportsExtDynamicState)
{
UpdateVertexAttributeDescriptions(gd);
}
@ -480,7 +480,7 @@ namespace Ryujinx.Graphics.Vulkan
{
SType = StructureType.PipelineVertexInputStateCreateInfo,
VertexAttributeDescriptionCount = VertexAttributeDescriptionsCount,
PVertexAttributeDescriptions = isMoltenVk ? pVertexAttributeDescriptions2 : pVertexAttributeDescriptions,
PVertexAttributeDescriptions = isMoltenVk && !_supportsExtDynamicState ? pVertexAttributeDescriptions2 : pVertexAttributeDescriptions,
VertexBindingDescriptionCount = VertexBindingDescriptionsCount,
PVertexBindingDescriptions = pVertexBindingDescriptions,
};