mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-24 05:26:02 +00:00
Set stride to 0 if Vertex Input dynamic state is enabled
This commit is contained in:
parent
42c47e408d
commit
d6f05044ea
2 changed files with 2 additions and 2 deletions
|
@ -1425,7 +1425,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
_newState.Internal.VertexBindingDescriptions[descriptorIndex] = new VertexInputBindingDescription(
|
||||
(uint)binding,
|
||||
(uint)vertexBuffer.Stride,
|
||||
_supportExtDynamic && !Gd.IsMoltenVk ? 0 : (uint)vertexBuffer.Stride,
|
||||
inputRate);
|
||||
|
||||
int vbSize = vertexBuffer.Buffer.Size;
|
||||
|
|
|
@ -276,7 +276,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
// TODO: Support divisor > 1
|
||||
pipeline.Internal.VertexBindingDescriptions[descriptorIndex++] = new VertexInputBindingDescription(
|
||||
(uint)i + 1,
|
||||
(uint)alignedStride,
|
||||
extendedDynamicState && !gd.IsMoltenVk ? 0 : (uint)alignedStride,
|
||||
inputRate);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue