Lines Matching refs:pCreateInfo

45 …rExtensions(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCreateInfo, VkDevice devic…  in checkDeviceRegisterExtensions()  argument
72 for (i = 0; i < pCreateInfo->enabledExtensionCount; i++) { in checkDeviceRegisterExtensions()
73 if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_SWAPCHAIN_EXTENSION_NAME) == 0) { in checkDeviceRegisterExtensions()
76 …if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME) == 0)… in checkDeviceRegisterExtensions()
82 static void checkInstanceRegisterExtensions(const VkInstanceCreateInfo *pCreateInfo, VkInstance ins… in checkInstanceRegisterExtensions() argument
112 …layer_copy_tmp_callbacks(pCreateInfo->pNext, &my_data->num_tmp_callbacks, &my_data->tmp_dbg_create… in checkInstanceRegisterExtensions()
118 for (i = 0; i < pCreateInfo->enabledExtensionCount; i++) { in checkInstanceRegisterExtensions()
119 if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
123 if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_DISPLAY_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
128 … if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_ANDROID_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
134 … if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_MIR_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
140 … if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
146 … if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_WIN32_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
152 … if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_XCB_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
158 … if (strcmp(pCreateInfo->ppEnabledExtensionNames[i], VK_KHR_XLIB_SURFACE_EXTENSION_NAME) == 0) { in checkInstanceRegisterExtensions()
206 VKAPI_ATTR VkResult VKAPI_CALL CreateInstance(const VkInstanceCreateInfo *pCreateInfo, const VkAllo… in CreateInstance() argument
208 VkLayerInstanceCreateInfo *chain_info = get_chain_info(pCreateInfo, VK_LAYER_LINK_INFO); in CreateInstance()
220 VkResult result = fpCreateInstance(pCreateInfo, pAllocator, pInstance); in CreateInstance()
231pCreateInfo->enabledExtensionCount, pCreateInfo->ppEnabledExtensionNames); in CreateInstance()
234 checkInstanceRegisterExtensions(pCreateInfo, *pInstance); in CreateInstance()
349 …CALL CreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR *pCreateInfo, in CreateAndroidSurfaceKHR() argument
373 …result = my_data->instance_dispatch_table->CreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocat… in CreateAndroidSurfaceKHR()
399 …t VKAPI_CALL CreateMirSurfaceKHR(VkInstance instance, const VkMirSurfaceCreateInfoKHR *pCreateInfo, in CreateMirSurfaceKHR() argument
423 …result = my_data->instance_dispatch_table->CreateMirSurfaceKHR(instance, pCreateInfo, pAllocator, … in CreateMirSurfaceKHR()
484 …CALL CreateWaylandSurfaceKHR(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR *pCreateInfo, in CreateWaylandSurfaceKHR() argument
508 …result = my_data->instance_dispatch_table->CreateWaylandSurfaceKHR(instance, pCreateInfo, pAllocat… in CreateWaylandSurfaceKHR()
570 …API_CALL CreateWin32SurfaceKHR(VkInstance instance, const VkWin32SurfaceCreateInfoKHR *pCreateInfo, in CreateWin32SurfaceKHR() argument
594 …result = my_data->instance_dispatch_table->CreateWin32SurfaceKHR(instance, pCreateInfo, pAllocator… in CreateWin32SurfaceKHR()
654 …t VKAPI_CALL CreateXcbSurfaceKHR(VkInstance instance, const VkXcbSurfaceCreateInfoKHR *pCreateInfo, in CreateXcbSurfaceKHR() argument
678 …result = my_data->instance_dispatch_table->CreateXcbSurfaceKHR(instance, pCreateInfo, pAllocator, … in CreateXcbSurfaceKHR()
740 …VKAPI_CALL CreateXlibSurfaceKHR(VkInstance instance, const VkXlibSurfaceCreateInfoKHR *pCreateInfo, in CreateXlibSurfaceKHR() argument
764 …result = my_data->instance_dispatch_table->CreateXlibSurfaceKHR(instance, pCreateInfo, pAllocator,… in CreateXlibSurfaceKHR()
977 const VkDisplayModeCreateInfoKHR *pCreateInfo, in CreateDisplayModeKHR() argument
1001 …instance_dispatch_table->CreateDisplayModeKHR(physicalDevice, display, pCreateInfo, pAllocator, pM… in CreateDisplayModeKHR()
1056 …CreateDisplayPlaneSurfaceKHR(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR *pCreateInfo, in CreateDisplayPlaneSurfaceKHR() argument
1077 …_data->instance_dispatch_table->CreateDisplayPlaneSurfaceKHR(instance, pCreateInfo, pAllocator, pS… in CreateDisplayPlaneSurfaceKHR()
1192 …ult VKAPI_CALL CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCreateInfo, in CreateDevice() argument
1195 VkLayerDeviceCreateInfo *chain_info = get_chain_info(pCreateInfo, VK_LAYER_LINK_INFO); in CreateDevice()
1208 VkResult result = fpCreateDevice(physicalDevice, pCreateInfo, pAllocator, pDevice); in CreateDevice()
1221 checkDeviceRegisterExtensions(physicalDevice, pCreateInfo, *pDevice); in CreateDevice()
1557 static bool validateCreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR *pCreateInfo in validateCreateSwapchainKHR() argument
1583 for (uint32_t i = 0; i < pCreateInfo->queueFamilyIndexCount; i++) { in validateCreateSwapchainKHR()
1584 …skip_call |= ValidateQueueFamilyIndex(my_data, pCreateInfo->pQueueFamilyIndices[i], pPhysicalDevic… in validateCreateSwapchainKHR()
1596 } else if (pCreateInfo) { in validateCreateSwapchainKHR()
1600 …SwpSurface *pSurface = ((pPhysicalDevice) ? pPhysicalDevice->supportedSurfaces[pCreateInfo->surfac… in validateCreateSwapchainKHR()
1613 if ((pCreateInfo->minImageCount < pCapabilities->minImageCount) || in validateCreateSwapchainKHR()
1614 …((pCapabilities->maxImageCount > 0) && (pCreateInfo->minImageCount > pCapabilities->maxImageCount)… in validateCreateSwapchainKHR()
1620pCreateInfo->minImageCount, pCapabilities->minImageCount, pCapabilities->maxImageCount); in validateCreateSwapchainKHR()
1625 ((pCreateInfo->imageExtent.width < pCapabilities->minImageExtent.width) || in validateCreateSwapchainKHR()
1626 (pCreateInfo->imageExtent.width > pCapabilities->maxImageExtent.width) || in validateCreateSwapchainKHR()
1627 (pCreateInfo->imageExtent.height < pCapabilities->minImageExtent.height) || in validateCreateSwapchainKHR()
1628 (pCreateInfo->imageExtent.height > pCapabilities->maxImageExtent.height))) { in validateCreateSwapchainKHR()
1635pCreateInfo->imageExtent.width, pCreateInfo->imageExtent.height, pCapabilities->currentExtent.widt… in validateCreateSwapchainKHR()
1640 ((pCreateInfo->imageExtent.width != pCapabilities->currentExtent.width) || in validateCreateSwapchainKHR()
1641 (pCreateInfo->imageExtent.height != pCapabilities->currentExtent.height))) { in validateCreateSwapchainKHR()
1647 pCreateInfo->imageExtent.width, pCreateInfo->imageExtent.height, in validateCreateSwapchainKHR()
1653 … if (!pCreateInfo->preTransform || (pCreateInfo->preTransform & (pCreateInfo->preTransform - 1)) || in validateCreateSwapchainKHR()
1654 !(pCreateInfo->preTransform & pCapabilities->supportedTransforms)) { in validateCreateSwapchainKHR()
1664 fn, surfaceTransformStr(pCreateInfo->preTransform)); in validateCreateSwapchainKHR()
1682 …if (!pCreateInfo->compositeAlpha || (pCreateInfo->compositeAlpha & (pCreateInfo->compositeAlpha - … in validateCreateSwapchainKHR()
1683 !((pCreateInfo->compositeAlpha) & pCapabilities->supportedCompositeAlpha)) { in validateCreateSwapchainKHR()
1693 fn, surfaceCompositeAlphaStr(pCreateInfo->compositeAlpha)); in validateCreateSwapchainKHR()
1710 …if ((pCreateInfo->imageArrayLayers < 1) || (pCreateInfo->imageArrayLayers > pCapabilities->maxImag… in validateCreateSwapchainKHR()
1716 pCreateInfo->imageArrayLayers, pCapabilities->maxImageArrayLayers); in validateCreateSwapchainKHR()
1720 … if (pCreateInfo->imageUsage != (pCreateInfo->imageUsage & pCapabilities->supportedUsageFlags)) { in validateCreateSwapchainKHR()
1726 pCreateInfo->imageUsage, pCapabilities->supportedUsageFlags); in validateCreateSwapchainKHR()
1737 } else if (pCreateInfo) { in validateCreateSwapchainKHR()
1744 if (pCreateInfo->imageFormat == pPhysicalDevice->pSurfaceFormats[i].format) { in validateCreateSwapchainKHR()
1748 … if (pCreateInfo->imageColorSpace == pPhysicalDevice->pSurfaceFormats[i].colorSpace) { in validateCreateSwapchainKHR()
1753 … if (pCreateInfo->imageColorSpace == pPhysicalDevice->pSurfaceFormats[i].colorSpace) { in validateCreateSwapchainKHR()
1767 pCreateInfo->imageFormat, pCreateInfo->imageColorSpace); in validateCreateSwapchainKHR()
1773 pCreateInfo->imageFormat); in validateCreateSwapchainKHR()
1780 pCreateInfo->imageColorSpace); in validateCreateSwapchainKHR()
1788 if (!pCreateInfo || (pCreateInfo->presentMode != VK_PRESENT_MODE_FIFO_KHR)) { in validateCreateSwapchainKHR()
1794 } else if (pCreateInfo) { in validateCreateSwapchainKHR()
1799 if (pPhysicalDevice->pPresentModes[i] == pCreateInfo->presentMode) { in validateCreateSwapchainKHR()
1809 presentModeStr(pCreateInfo->presentMode)); in validateCreateSwapchainKHR()
1814 if (pCreateInfo->imageSharingMode == VK_SHARING_MODE_CONCURRENT) { in validateCreateSwapchainKHR()
1815 if ((pCreateInfo->queueFamilyIndexCount <= 1) || !pCreateInfo->pQueueFamilyIndices) { in validateCreateSwapchainKHR()
1821 sharingModeStr(pCreateInfo->imageSharingMode)); in validateCreateSwapchainKHR()
1823 } else if (pCreateInfo->imageSharingMode != VK_SHARING_MODE_EXCLUSIVE) { in validateCreateSwapchainKHR()
1828 sharingModeStr(pCreateInfo->imageSharingMode)); in validateCreateSwapchainKHR()
1832 if (pCreateInfo && (pCreateInfo->clipped != VK_FALSE) && (pCreateInfo->clipped != VK_TRUE)) { in validateCreateSwapchainKHR()
1837 pCreateInfo->clipped); in validateCreateSwapchainKHR()
1843 …kResult VKAPI_CALL CreateSwapchainKHR(VkDevice device, const VkSwapchainCreateInfoKHR *pCreateInfo, in CreateSwapchainKHR() argument
1848 bool skip_call = validateCreateSwapchainKHR(device, pCreateInfo, pSwapchain); in CreateSwapchainKHR()
1853 …result = my_data->device_dispatch_table->CreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwap… in CreateSwapchainKHR()
1875 …SwpSurface *pSurface = ((my_data && pCreateInfo) ? &my_instance_data->surfaceMap[pCreateInfo->surf… in CreateSwapchainKHR()
2261 … const VkDebugReportCallbackCreateInfoEXT *pCreateInfo, in CreateDebugReportCallbackEXT() argument
2266 …my_data->instance_dispatch_table->CreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, … in CreateDebugReportCallbackEXT()
2269 …result = layer_create_msg_callback(my_data->report_data, false, pCreateInfo, pAllocator, pMsgCallb… in CreateDebugReportCallbackEXT()
2504 … const VkDebugReportCallbackCreateInfoEXT *pCreateInfo, in vkCreateDebugReportCallbackEXT() argument
2507 return swapchain::CreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pMsgCallback); in vkCreateDebugReportCallbackEXT()