Lines Matching refs:caps
100 VkSurfaceCapabilitiesKHR caps; in createSwapchain() local
102 fSurface, &caps); in createSwapchain()
137 VkExtent2D extent = caps.currentExtent; in createSwapchain()
145 if (extent.width < caps.minImageExtent.width) { in createSwapchain()
146 extent.width = caps.minImageExtent.width; in createSwapchain()
147 } else if (extent.width > caps.maxImageExtent.width) { in createSwapchain()
148 extent.width = caps.maxImageExtent.width; in createSwapchain()
151 if (extent.height < caps.minImageExtent.height) { in createSwapchain()
152 extent.height = caps.minImageExtent.height; in createSwapchain()
153 } else if (extent.height > caps.maxImageExtent.height) { in createSwapchain()
154 extent.height = caps.maxImageExtent.height; in createSwapchain()
160 uint32_t imageCount = caps.minImageCount + 2; in createSwapchain()
161 if (caps.maxImageCount > 0 && imageCount > caps.maxImageCount) { in createSwapchain()
163 imageCount = caps.maxImageCount; in createSwapchain()
169 SkASSERT((caps.supportedUsageFlags & usageFlags) == usageFlags); in createSwapchain()
170 SkASSERT(caps.supportedTransforms & caps.currentTransform); in createSwapchain()
171 SkASSERT(caps.supportedCompositeAlpha & (VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR | in createSwapchain()
174 (caps.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR) ? in createSwapchain()