[GPU] Revert binding vertex buffers with their guest descriptor sizes

This commit is contained in:
ParantezTech 2026-10-06 00:56:13 +03:00
parent c9119da5a8
commit cbee451aed
1 changed files with 1 additions and 5 deletions

View File

@ -375,17 +375,13 @@ internal static unsafe partial class VulkanVideoPresenter
var command = BeginBatchedGuestCommands();
var buffers = stackalloc VkBuffer[bindings.Length];
var offsets = stackalloc ulong[bindings.Length];
var sizes = stackalloc ulong[bindings.Length];
for (var index = 0; index < bindings.Length; index++)
{
buffers[index] = new VkBuffer(bindings[index].Handle);
offsets[index] = bindings[index].Offset;
var vertex = input.Buffers[index];
sizes[index] = vertex.Size == 0 ? 0 : ClampMappedSize(vertex.Address, vertex.Size);
}
// Keep guest descriptor bounds even when the cache merges neighboring allocations.
_vk.CmdBindVertexBuffers2(command, 0, (uint)bindings.Length, buffers, offsets, sizes, null);
_vk.CmdBindVertexBuffers(command, 0, (uint)bindings.Length, buffers, offsets);
}
public void BindIndexBuffer(BufferBinding binding, IndexType type) =>