Lines Matching refs:pSurface
289 SwpSurface *pSurface = it->second; in DestroyInstance() local
290 if (pSurface) { in DestroyInstance()
350 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateAndroidSurfaceKHR() argument
373 …ata->instance_dispatch_table->CreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateAndroidSurfaceKHR()
381 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateAndroidSurfaceKHR()
383 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateAndroidSurfaceKHR()
384 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateAndroidSurfaceKHR()
385 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateAndroidSurfaceKHR()
386 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateAndroidSurfaceKHR()
388 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateAndroidSurfaceKHR()
400 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateMirSurfaceKHR() argument
423 …my_data->instance_dispatch_table->CreateMirSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateMirSurfaceKHR()
431 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateMirSurfaceKHR()
433 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateMirSurfaceKHR()
434 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateMirSurfaceKHR()
435 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateMirSurfaceKHR()
436 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateMirSurfaceKHR()
438 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateMirSurfaceKHR()
485 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateWaylandSurfaceKHR() argument
508 …ata->instance_dispatch_table->CreateWaylandSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateWaylandSurfaceKHR()
516 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateWaylandSurfaceKHR()
518 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateWaylandSurfaceKHR()
519 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateWaylandSurfaceKHR()
520 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateWaylandSurfaceKHR()
521 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateWaylandSurfaceKHR()
523 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateWaylandSurfaceKHR()
571 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateWin32SurfaceKHR() argument
594 …_data->instance_dispatch_table->CreateWin32SurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateWin32SurfaceKHR()
602 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateWin32SurfaceKHR()
604 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateWin32SurfaceKHR()
605 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateWin32SurfaceKHR()
606 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateWin32SurfaceKHR()
607 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateWin32SurfaceKHR()
609 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateWin32SurfaceKHR()
655 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateXcbSurfaceKHR() argument
678 …my_data->instance_dispatch_table->CreateXcbSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateXcbSurfaceKHR()
686 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateXcbSurfaceKHR()
688 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateXcbSurfaceKHR()
689 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateXcbSurfaceKHR()
690 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateXcbSurfaceKHR()
691 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateXcbSurfaceKHR()
693 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateXcbSurfaceKHR()
741 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateXlibSurfaceKHR() argument
764 …y_data->instance_dispatch_table->CreateXlibSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateXlibSurfaceKHR()
772 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateXlibSurfaceKHR()
774 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateXlibSurfaceKHR()
775 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateXlibSurfaceKHR()
776 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateXlibSurfaceKHR()
777 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateXlibSurfaceKHR()
779 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateXlibSurfaceKHR()
1057 … const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) { in CreateDisplayPlaneSurfaceKHR() argument
1077 …instance_dispatch_table->CreateDisplayPlaneSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface); in CreateDisplayPlaneSurfaceKHR()
1082 if ((result == VK_SUCCESS) && pInstance && pSurface) { in CreateDisplayPlaneSurfaceKHR()
1084 my_data->surfaceMap[*pSurface].surface = *pSurface; in CreateDisplayPlaneSurfaceKHR()
1085 my_data->surfaceMap[*pSurface].pInstance = pInstance; in CreateDisplayPlaneSurfaceKHR()
1086 my_data->surfaceMap[*pSurface].numQueueFamilyIndexSupport = 0; in CreateDisplayPlaneSurfaceKHR()
1087 my_data->surfaceMap[*pSurface].pQueueFamilyIndexSupport = NULL; in CreateDisplayPlaneSurfaceKHR()
1089 pInstance->surfaces[*pSurface] = &my_data->surfaceMap[*pSurface]; in CreateDisplayPlaneSurfaceKHR()
1101 SwpSurface *pSurface = NULL; in DestroySurfaceKHR() local
1104 pSurface = (it == my_data->surfaceMap.end()) ? NULL : &it->second; in DestroySurfaceKHR()
1122 if (pSurface) { in DestroySurfaceKHR()
1124 if (pSurface->pInstance) { in DestroySurfaceKHR()
1125 pSurface->pInstance->surfaces.erase(surface); in DestroySurfaceKHR()
1127 if (!pSurface->swapchains.empty()) { in DestroySurfaceKHR()
1134 for (auto it = pSurface->swapchains.begin(); it != pSurface->swapchains.end(); it++) { in DestroySurfaceKHR()
1145 pSurface->swapchains.clear(); in DestroySurfaceKHR()
1258 if (it->second->pSurface) { in DestroyDevice()
1259 it->second->pSurface->swapchains.clear(); in DestroyDevice()
1318 SwpSurface *pSurface = (pInstance) ? pInstance->surfaces[surface] : NULL; in GetPhysicalDeviceSurfaceSupportKHR() local
1319 if (pSurface) { in GetPhysicalDeviceSurfaceSupportKHR()
1320 pPhysicalDevice->supportedSurfaces[surface] = pSurface; in GetPhysicalDeviceSurfaceSupportKHR()
1321 if (!pSurface->numQueueFamilyIndexSupport) { in GetPhysicalDeviceSurfaceSupportKHR()
1323 pSurface->pQueueFamilyIndexSupport = in GetPhysicalDeviceSurfaceSupportKHR()
1325 if (pSurface->pQueueFamilyIndexSupport != NULL) { in GetPhysicalDeviceSurfaceSupportKHR()
1326 … pSurface->numQueueFamilyIndexSupport = pPhysicalDevice->numOfQueueFamilies; in GetPhysicalDeviceSurfaceSupportKHR()
1330 if (pSurface->numQueueFamilyIndexSupport) { in GetPhysicalDeviceSurfaceSupportKHR()
1331 pSurface->pQueueFamilyIndexSupport[queueFamilyIndex] = *pSupported; in GetPhysicalDeviceSurfaceSupportKHR()
1600 …SwpSurface *pSurface = ((pPhysicalDevice) ? pPhysicalDevice->supportedSurfaces[pCreateInfo->surfac… in validateCreateSwapchainKHR() local
1601 if (!pSurface) { in validateCreateSwapchainKHR()
1875 …SwpSurface *pSurface = ((my_data && pCreateInfo) ? &my_instance_data->surfaceMap[pCreateInfo->surf… in CreateSwapchainKHR() local
1876 my_data->swapchainMap[*pSwapchain].pSurface = pSurface; in CreateSwapchainKHR()
1877 if (pSurface) { in CreateSwapchainKHR()
1878 pSurface->swapchains[*pSwapchain] = &my_data->swapchainMap[*pSwapchain]; in CreateSwapchainKHR()
1922 if (pSwapchain->pSurface) { in DestroySwapchainKHR()
1923 pSwapchain->pSurface->swapchains.erase(swapchain); in DestroySwapchainKHR()
2130 SwpSurface *pSurface = pSwapchain->pSurface; in QueuePresentKHR() local
2131 if (pQueue && pSurface && pSurface->numQueueFamilyIndexSupport) { in QueuePresentKHR()
2135 if ((pSurface->numQueueFamilyIndexSupport > queueFamilyIndex) && in QueuePresentKHR()
2136 (!pSurface->pQueueFamilyIndexSupport[queueFamilyIndex])) { in QueuePresentKHR()