- hook up vid_vsync and vk_debug
This commit is contained in:
parent
b4154f1772
commit
c2e0eba270
4 changed files with 12 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include "vk_swapchain.h"
|
||||
|
||||
VulkanSwapChain::VulkanSwapChain(VulkanDevice *device, int width, int height, bool vsync) : device(device)
|
||||
VulkanSwapChain::VulkanSwapChain(VulkanDevice *device, int width, int height, bool vsync) : vsync(vsync), device(device)
|
||||
{
|
||||
VkSurfaceCapabilitiesKHR surfaceCapabilities;
|
||||
VkResult result = vkGetPhysicalDeviceSurfaceCapabilitiesKHR(device->physicalDevice, device->surface, &surfaceCapabilities);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue