Add funcptr for vkCreateFramebuffer

This commit is contained in:
twinaphex 2016-02-29 16:32:34 +01:00
parent 361cce328d
commit 778b50fc28
3 changed files with 3 additions and 1 deletions

View File

@ -1055,6 +1055,7 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk,
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdSetViewport);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CmdBindPipeline);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateRenderPass);
VK_GET_INSTANCE_PROC_ADDR(vk, vk->context.instance, CreateFramebuffer);
if (vk->context.fp.vkEnumeratePhysicalDevices(vk->context.instance,
&gpu_count, NULL) != VK_SUCCESS)

View File

@ -137,6 +137,7 @@ typedef struct vulkan_context
PFN_vkWaitForFences vkWaitForFences;
PFN_vkDestroySemaphore vkDestroySemaphore;
PFN_vkCreateSemaphore vkCreateSemaphore;
PFN_vkCreateFramebuffer vkCreateFramebuffer;
PFN_vkGetDeviceQueue vkGetDeviceQueue;
PFN_vkCreateInstance vkCreateInstance;
PFN_vkCreateRenderPass vkCreateRenderPass;

View File

@ -151,7 +151,7 @@ static void vulkan_init_framebuffers(vk_t *vk)
info.height = vk->context->swapchain_height;
info.layers = 1;
vkCreateFramebuffer(vk->context->device,
vk->context->fp.vkCreateFramebuffer(vk->context->device,
&info, NULL, &vk->swapchain[i].backbuffer.framebuffer);
}
}