mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-25 08:16: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(
|
_newState.Internal.VertexBindingDescriptions[descriptorIndex] = new VertexInputBindingDescription(
|
||||||
(uint)binding,
|
(uint)binding,
|
||||||
(uint)vertexBuffer.Stride,
|
_supportExtDynamic && !Gd.IsMoltenVk ? 0 : (uint)vertexBuffer.Stride,
|
||||||
inputRate);
|
inputRate);
|
||||||
|
|
||||||
int vbSize = vertexBuffer.Buffer.Size;
|
int vbSize = vertexBuffer.Buffer.Size;
|
||||||
|
|
|
@ -276,7 +276,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
// TODO: Support divisor > 1
|
// TODO: Support divisor > 1
|
||||||
pipeline.Internal.VertexBindingDescriptions[descriptorIndex++] = new VertexInputBindingDescription(
|
pipeline.Internal.VertexBindingDescriptions[descriptorIndex++] = new VertexInputBindingDescription(
|
||||||
(uint)i + 1,
|
(uint)i + 1,
|
||||||
(uint)alignedStride,
|
extendedDynamicState && !gd.IsMoltenVk ? 0 : (uint)alignedStride,
|
||||||
inputRate);
|
inputRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue