Searched refs:surfCapabilities (Results 1 – 2 of 2) sorted by relevance
874 VkSurfaceCapabilitiesKHR surfCapabilities; in demo_prepare_buffers() local876 demo->gpu, demo->surface, &surfCapabilities); in demo_prepare_buffers()892 if (surfCapabilities.currentExtent.width == 0xFFFFFFFF) { in demo_prepare_buffers()899 if (swapchainExtent.width < surfCapabilities.minImageExtent.width) { in demo_prepare_buffers()900 swapchainExtent.width = surfCapabilities.minImageExtent.width; in demo_prepare_buffers()901 } else if (swapchainExtent.width > surfCapabilities.maxImageExtent.width) { in demo_prepare_buffers()902 swapchainExtent.width = surfCapabilities.maxImageExtent.width; in demo_prepare_buffers()905 if (swapchainExtent.height < surfCapabilities.minImageExtent.height) { in demo_prepare_buffers()906 swapchainExtent.height = surfCapabilities.minImageExtent.height; in demo_prepare_buffers()907 } else if (swapchainExtent.height > surfCapabilities.maxImageExtent.height) { in demo_prepare_buffers()[all …]
1261 vk::SurfaceCapabilitiesKHR surfCapabilities; in prepare_buffers() local1262 auto result = gpu.getSurfaceCapabilitiesKHR(surface, &surfCapabilities); in prepare_buffers()1278 if (surfCapabilities.currentExtent.width == (uint32_t)-1) { in prepare_buffers()1285 swapchainExtent = surfCapabilities.currentExtent; in prepare_buffers()1286 width = surfCapabilities.currentExtent.width; in prepare_buffers()1287 height = surfCapabilities.currentExtent.height; in prepare_buffers()1355 surfCapabilities.minImageCount + 1; in prepare_buffers()1359 if ((surfCapabilities.maxImageCount > 0) && in prepare_buffers()1360 (desiredNumberOfSwapchainImages > surfCapabilities.maxImageCount)) { in prepare_buffers()1362 desiredNumberOfSwapchainImages = surfCapabilities.maxImageCount; in prepare_buffers()[all …]