Set correct buffer size.

This commit is contained in:
Themaister 2017-12-09 15:59:21 +01:00
parent 75b84b4f94
commit f8447c4648
2 changed files with 2 additions and 2 deletions

View File

@ -987,7 +987,7 @@ struct vk_buffer vulkan_create_buffer(
vkAllocateMemory(context->device, &alloc, NULL, &buffer.memory);
vkBindBufferMemory(context->device, buffer.buffer, buffer.memory, 0);
buffer.size = alloc.allocationSize;
buffer.size = size;
vkMapMemory(context->device,
buffer.memory, 0, buffer.size, 0, &buffer.mapped);

View File

@ -22,7 +22,7 @@
#define VULKAN_DESCRIPTOR_MANAGER_BLOCK_SETS 16
#define VULKAN_MAX_DESCRIPTOR_POOL_SIZES 16
#define VULKAN_BUFFER_BLOCK_SIZE (4 * 1024)
#define VULKAN_BUFFER_BLOCK_SIZE (64 * 1024)
#define VULKAN_MAX_SWAPCHAIN_IMAGES 8