Add funcptr for vkAllocateCommandBuffers

This commit is contained in:
twinaphex 2016-02-29 21:51:42 +01:00
parent 4771c45ed3
commit a6eb40b3d2
3 changed files with 3 additions and 1 deletions

View File

@ -1146,6 +1146,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
/* Framebuffers */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateFramebuffer);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, AllocateCommandBuffers);
/* Memory allocation */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, MapMemory);

View File

@ -175,6 +175,7 @@ typedef struct vulkan_context
PFN_vkBeginCommandBuffer vkBeginCommandBuffer;
PFN_vkEndCommandBuffer vkEndCommandBuffer;
PFN_vkResetCommandBuffer vkResetCommandBuffer;
PFN_vkAllocateCommandBuffers vkAllocateCommandBuffers;
/* Command Buffer Submission */
PFN_vkQueueSubmit vkQueueSubmit;

View File

@ -388,7 +388,7 @@ static void vulkan_init_command_buffers(struct vulkan_context_fp *vkcfp, vk_t *v
info.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY;
info.commandBufferCount = 1;
vkAllocateCommandBuffers(vk->context->device,
VKFUNC(vkAllocateCommandBuffers)(vk->context->device,
&info, &vk->swapchain[i].cmd);
}
}