1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-01 19:29:16 +01:00

[dxvk] Set dummy vertex buffer size to the maximum binding stride

This commit is contained in:
Philip Rebohle 2018-02-01 14:31:10 +01:00
parent c66492a90f
commit b860915aed
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ namespace dxvk {
MaxNumResourceSlots = 1096,
MaxNumActiveBindings = 128,
MaxNumQueuedCommandBuffers = 8,
MaxVertexBindingStride = 2048,
};
}

View File

@ -64,7 +64,7 @@ namespace dxvk {
Rc<DxvkBuffer> DxvkUnboundResources::createBuffer(DxvkDevice* dev) {
DxvkBufferCreateInfo info;
info.size = 4;
info.size = MaxVertexBindingStride;
info.usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT
| VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT
| VK_BUFFER_USAGE_STORAGE_BUFFER_BIT