mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-04-29 13:57:52 +00:00
Set stride to 0 if Vertex Input dynamic state is enabled
This commit is contained in:
parent
42c47e408d
commit
d6f05044ea
@ -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…
x
Reference in New Issue
Block a user