starting swapchain implementation
This commit is contained in:
16
kvf.h
16
kvf.h
@@ -83,6 +83,9 @@ void kvfDestroyFence(VkDevice device, VkFence fence);
|
||||
VkSemaphore kvfCreateSemaphore(VkDevice device);
|
||||
void kvfDestroySemaphore(VkDevice device, VkSemaphore semaphore);
|
||||
|
||||
VkSwapchainKHR kvfCreateSwapchain(VkDevice device, VkPhysicalDevice physical, VkSurfaceKHR surface);
|
||||
void kvfDestroySwapchain(VkDevice device, VkSwapchainKHR swapchain);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -457,6 +460,19 @@ void kvfDestroySemaphore(VkDevice device, VkSemaphore semaphore)
|
||||
vkDestroySemaphore(device, semaphores, NULL);
|
||||
}
|
||||
|
||||
VkSwapchainKHR kvfCreateSwapchain(VkDevice device, VkPhysicalDevice physical, VkSurfaceKHR surface)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void kvfDestroySwapchain(VkDevice device, VkSwapchainKHR swapchain)
|
||||
{
|
||||
if(swapchain == VK_NULL_HANDLE)
|
||||
return;
|
||||
KVF_ASSERT(device != VK_NULL_HANDLE);
|
||||
vkDestroySwapchainKHR(device, swapchain, NULL);
|
||||
}
|
||||
|
||||
#endif // KVF_IMPLEMENTATION
|
||||
|
||||
#endif // KBZ_8_VULKAN_FRAMEWORK_H
|
||||
|
||||
Reference in New Issue
Block a user