Home | History | Annotate | Download | only in layers

Lines Matching refs:instance

82 static void checkInstanceRegisterExtensions(const VkInstanceCreateInfo *pCreateInfo, VkInstance instance) {
84 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
86 // Remember this instance, and whether the VK_KHR_surface extension
88 my_data->instanceMap[instance].instance = instance;
89 my_data->instanceMap[instance].surfaceExtensionEnabled = false;
90 my_data->instanceMap[instance].displayExtensionEnabled = false;
92 my_data->instanceMap[instance].androidSurfaceExtensionEnabled = false;
95 my_data->instanceMap[instance].mirSurfaceExtensionEnabled = false;
98 my_data->instanceMap[instance].waylandSurfaceExtensionEnabled = false;
101 my_data->instanceMap[instance].win32SurfaceExtensionEnabled = false;
104 my_data->instanceMap[instance].xcbSurfaceExtensionEnabled = false;
107 my_data->instanceMap[instance].xlibSurfaceExtensionEnabled = false;
115 // Record whether the WSI instance extension was enabled for this
121 my_data->instanceMap[instance].surfaceExtensionEnabled = true;
125 my_data->instanceMap[instance].displayExtensionEnabled = true;
130 my_data->instanceMap[instance].androidSurfaceExtensionEnabled = true;
136 my_data->instanceMap[instance].mirSurfaceExtensionEnabled = true;
142 my_data->instanceMap[instance].waylandSurfaceExtensionEnabled = true;
148 my_data->instanceMap[instance].win32SurfaceExtensionEnabled = true;
154 my_data->instanceMap[instance].xcbSurfaceExtensionEnabled = true;
160 my_data->instanceMap[instance].xlibSurfaceExtensionEnabled = true;
226 my_data->instance = *pInstance;
240 VKAPI_ATTR void VKAPI_CALL DestroyInstance(VkInstance instance, const VkAllocationCallbacks *pAllocator) {
241 dispatch_key key = get_dispatch_key(instance);
245 auto it = my_data->instanceMap.find(instance);
250 my_data->instance_dispatch_table->DestroyInstance(instance, pAllocator);
266 // SwpInstance associated with this instance:
292 reinterpret_cast<uint64_t>(pInstance->instance), __LINE__, SWAPCHAIN_DEL_OBJECT_BEFORE_CHILDREN,
297 my_data->instanceMap.erase(instance);
349 instance, const VkAndroidSurfaceCreateInfoKHR *pCreateInfo,
353 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
357 auto it = my_data->instanceMap.find(instance);
365 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
373 result = my_data->instance_dispatch_table->CreateAndroidSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
378 auto it = my_data->instanceMap.find(instance);
399 VKAPI_ATTR VkResult VKAPI_CALL CreateMirSurfaceKHR(VkInstance instance, const VkMirSurfaceCreateInfoKHR *pCreateInfo,
403 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
407 auto it = my_data->instanceMap.find(instance);
415 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
423 result = my_data->instance_dispatch_table->CreateMirSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
428 auto it = my_data->instanceMap.find(instance);
463 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
484 VKAPI_ATTR VkResult VKAPI_CALL CreateWaylandSurfaceKHR(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR *pCreateInfo,
488 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
492 auto it = my_data->instanceMap.find(instance);
500 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
508 result = my_data->instance_dispatch_table->CreateWaylandSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
513 auto it = my_data->instanceMap.find(instance);
549 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
570 VKAPI_ATTR VkResult VKAPI_CALL CreateWin32SurfaceKHR(VkInstance instance, const VkWin32SurfaceCreateInfoKHR *pCreateInfo,
574 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
578 auto it = my_data->instanceMap.find(instance);
586 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
594 result = my_data->instance_dispatch_table->CreateWin32SurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
599 auto it = my_data->instanceMap.find(instance);
634 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
654 VKAPI_ATTR VkResult VKAPI_CALL CreateXcbSurfaceKHR(VkInstance instance, const VkXcbSurfaceCreateInfoKHR *pCreateInfo,
658 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
662 auto it = my_data->instanceMap.find(instance);
670 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
678 result = my_data->instance_dispatch_table->CreateXcbSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
683 auto it = my_data->instanceMap.find(instance);
719 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
740 VKAPI_ATTR VkResult VKAPI_CALL CreateXlibSurfaceKHR(VkInstance instance, const VkXlibSurfaceCreateInfoKHR *pCreateInfo,
744 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
748 auto it = my_data->instanceMap.find(instance);
756 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
764 result = my_data->instance_dispatch_table->CreateXlibSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
769 auto it = my_data->instanceMap.find(instance);
805 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
840 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
870 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
909 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
917 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__,
926 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_PLANE_INDEX_TOO_LARGE,
959 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
991 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__,
1023 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
1031 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__,
1039 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__,
1056 VKAPI_ATTR VkResult VKAPI_CALL CreateDisplayPlaneSurfaceKHR(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR *pCreateInfo,
1060 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
1062 SwpInstance *pInstance = &(my_data->instanceMap[instance]);
1068 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
1077 result = my_data->instance_dispatch_table->CreateDisplayPlaneSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
1081 pInstance = &(my_data->instanceMap[instance]);
1097 VKAPI_ATTR void VKAPI_CALL DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, const VkAllocationCallbacks *pAllocator) {
1099 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
1108 auto it = my_data->instanceMap.find(instance);
1116 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED, swapchain_layer_name,
1130 reinterpret_cast<uint64_t>(instance), __LINE__, SWAPCHAIN_DEL_OBJECT_BEFORE_CHILDREN, swapchain_layer_name,
1153 my_data->instance_dispatch_table->DestroySurfaceKHR(instance, surface, pAllocator);
1157 VKAPI_ATTR VkResult VKAPI_CALL EnumeratePhysicalDevices(VkInstance instance, uint32_t *pPhysicalDeviceCount,
1160 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
1163 result = my_data->instance_dispatch_table->EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices);
1168 auto it = my_data->instanceMap.find(instance);
1200 PFN_vkCreateDevice fpCreateDevice = (PFN_vkCreateDevice)fpGetInstanceProcAddr(my_instance_data->instance, "vkCreateDevice");
1286 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
1358 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
1405 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
1488 reinterpret_cast<uint64_t>(pPhysicalDevice->pInstance->instance), __LINE__, SWAPCHAIN_EXT_NOT_ENABLED_BUT_USED,
1874 ((pInstance) ? get_my_data_ptr(get_dispatch_key(pInstance->instance), layer_data_map) : NULL);
2260 VKAPI_ATTR VkResult VKAPI_CALL CreateDebugReportCallbackEXT(VkInstance instance,
2264 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
2266 my_data->instance_dispatch_table->CreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pMsgCallback);
2274 VKAPI_ATTR void VKAPI_CALL DestroyDebugReportCallbackEXT(VkInstance instance, VkDebugReportCallbackEXT msgCallback,
2276 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
2277 my_data->instance_dispatch_table->DestroyDebugReportCallbackEXT(instance, msgCallback, pAllocator);
2282 VKAPI_ATTR void VKAPI_CALL DebugReportMessageEXT(VkInstance instance, VkDebugReportFlagsEXT flags,
2285 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
2286 my_data->instance_dispatch_table->DebugReportMessageEXT(instance, flags, objType, object, location, msgCode, pLayerPrefix,
2321 static PFN_vkVoidFunction intercept_khr_surface_command(const char *name, VkInstance instance);
2348 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL GetInstanceProcAddr(VkInstance instance, const char *funcName) {
2357 assert(instance);
2360 my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
2365 proc = intercept_khr_surface_command(funcName, instance);
2371 return pTable->GetInstanceProcAddr(instance, funcName);
2399 static PFN_vkVoidFunction intercept_khr_surface_command(const char *name, VkInstance instance) {
2503 VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT(VkInstance instance,
2507 return swapchain::CreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pMsgCallback);
2510 VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT(VkInstance instance, VkDebugReportCallbackEXT msgCallback,
2512 swapchain::DestroyDebugReportCallbackEXT(instance, msgCallback, pAllocator);
2515 VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT(VkInstance instance, VkDebugReportFlagsEXT flags,
2518 swapchain::DebugReportMessageEXT(instance, flags, objType, object, location, msgCode, pLayerPrefix, pMsg);
2552 VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(VkInstance instance, const char *funcName) {
2553 return swapchain::GetInstanceProcAddr(instance, funcName);