(Vulkan) Go through funcptr for vkEndCommandBuffer

This commit is contained in:
twinaphex 2016-02-29 21:31:51 +01:00
parent a1c8a47665
commit 860ffff3c9
3 changed files with 4 additions and 2 deletions

View File

@ -472,7 +472,7 @@ struct vk_texture vulkan_create_texture(vk_t *vk,
VK_PIPELINE_STAGE_TRANSFER_BIT,
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
vkEndCommandBuffer(staging);
VKFUNC(vkEndCommandBuffer)(staging);
submit_info.commandBufferCount = 1;
submit_info.pCommandBuffers = &staging;
@ -1168,6 +1168,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
/* Command buffers */
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateCommandPool);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, DestroyCommandPool);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, EndCommandBuffer);
if (VKFUNC(vkEnumeratePhysicalDevices)(vk->context.instance,
&gpu_count, NULL) != VK_SUCCESS)

View File

@ -173,6 +173,7 @@ typedef struct vulkan_context
/* Command buffers */
PFN_vkCreateCommandPool vkCreateCommandPool;
PFN_vkDestroyCommandPool vkDestroyCommandPool;
PFN_vkEndCommandBuffer vkEndCommandBuffer;
/* Framebuffers */
PFN_vkCreateFramebuffer vkCreateFramebuffer;

View File

@ -1645,7 +1645,7 @@ static bool vulkan_frame(void *data, const void *frame,
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT);
}
vkEndCommandBuffer(vk->cmd);
VKFUNC(vkEndCommandBuffer)(vk->cmd);
/* Submit command buffers to GPU. */