Lines Matching refs:surfCapabilities

874     VkSurfaceCapabilitiesKHR surfCapabilities;  in demo_prepare_buffers()  local
876 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()
908 swapchainExtent.height = surfCapabilities.maxImageExtent.height; in demo_prepare_buffers()
912 swapchainExtent = surfCapabilities.currentExtent; in demo_prepare_buffers()
913 demo->width = surfCapabilities.currentExtent.width; in demo_prepare_buffers()
914 demo->height = surfCapabilities.currentExtent.height; in demo_prepare_buffers()
974 uint32_t desiredNumOfSwapchainImages = surfCapabilities.minImageCount; in demo_prepare_buffers()
977 if ((surfCapabilities.maxImageCount > 0) && in demo_prepare_buffers()
978 (desiredNumOfSwapchainImages > surfCapabilities.maxImageCount)) { in demo_prepare_buffers()
980 desiredNumOfSwapchainImages = surfCapabilities.maxImageCount; in demo_prepare_buffers()
984 if (surfCapabilities.supportedTransforms & in demo_prepare_buffers()
988 preTransform = surfCapabilities.currentTransform; in demo_prepare_buffers()