Lines Matching refs:instance
61 // Track state of each instance
94 // that the layer have per-instance locks. We need to come back and
166 VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroyInstance(VkInstance instance, const VkAllocationCallbacks *pAllocator) {
167 dispatch_key key = get_dispatch_key(instance);
170 pTable->DestroyInstance(instance, pAllocator);
183 // Release mutex when destroying last instance.
190 vkEnumeratePhysicalDevices(VkInstance instance, uint32_t *pPhysicalDeviceCount, VkPhysicalDevice *pPhysicalDevices) {
192 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
194 // For this instance, flag when vkEnumeratePhysicalDevices goes to QUERY_COUNT and then QUERY_DETAILS
211 "supported by this instance is %u.",
219 my_data->instance_dispatch_table->EnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices);
234 DEVLIMITS_INVALID_INSTANCE, "DL", "Invalid instance (%#" PRIxLEAST64 ") passed into vkEnumeratePhysicalDevices().",
235 (uint64_t)instance);
668 vkCreateDebugReportCallbackEXT(VkInstance instance, const VkDebugReportCallbackCreateInfoEXT *pCreateInfo,
670 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
671 VkResult res = my_data->instance_dispatch_table->CreateDebugReportCallbackEXT(instance, pCreateInfo, pAllocator, pMsgCallback);
678 VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT(VkInstance instance,
681 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
682 my_data->instance_dispatch_table->DestroyDebugReportCallbackEXT(instance, msgCallback, pAllocator);
687 vkDebugReportMessageEXT(VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objType, uint64_t object,
689 layer_data *my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
690 my_data->instance_dispatch_table->DebugReportMessageEXT(instance, flags, objType, object, location, msgCode, pLayerPrefix,
734 VK_LAYER_EXPORT VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(VkInstance instance, const char *funcName) {
773 if (!instance)
776 my_data = get_my_data_ptr(get_dispatch_key(instance), layer_data_map);
786 return pTable->GetInstanceProcAddr(instance, funcName);