Lines Matching defs:inst

170 InstWrapper::InstWrapper(VulkanFunctions& functions, VkInstance inst, VkAllocationCallbacks* callbacks) noexcept
171 : functions(&functions), inst(inst), callbacks(callbacks) {}
173 if (inst != VK_NULL_HANDLE) functions->vkDestroyInstance(inst, callbacks);
178 inst = other.inst;
181 other.inst = VK_NULL_HANDLE;
184 functions->vkDestroyInstance(inst, callbacks);
186 inst = other.inst;
189 other.inst = VK_NULL_HANDLE;
194 ASSERT_EQ(result_to_check, functions->vkCreateInstance(create_info.get(), callbacks, &inst));
198 ASSERT_EQ(result_to_check, functions->vkCreateInstance(create_info.get(), callbacks, &inst));
205 VkResult res = functions->vkEnumeratePhysicalDevices(inst, &physical_count, physical_devices.data());
212 VkResult res = functions->vkEnumeratePhysicalDevices(inst, &physical_count, nullptr);
216 res = functions->vkEnumeratePhysicalDevices(inst, &physical_count, physical_devices.data());
224 VkResult res = this->functions->vkEnumeratePhysicalDevices(inst, &physical_count, &physical_device);
295 return debug_utils.vkCreateDebugUtilsMessengerEXT(debug_utils.inst, debug_utils.get(), debug_utils.callbacks,
804 VkResult create_surface_helper(VulkanFunctions* functions, VkInstance inst, VkSurfaceKHR& surface, const char* load_func_name) {
805 CreationFunc pfn_CreateSurface = functions->load(inst, load_func_name);
808 return pfn_CreateSurface(inst, &surf_create_info, nullptr, &surface);
810 VkResult create_surface(VulkanFunctions* functions, VkInstance inst, VkSurfaceKHR& surface,
813 return create_surface_helper<PFN_vkCreateAndroidSurfaceKHR, VkAndroidSurfaceCreateInfoKHR>(functions, inst, surface,
816 return create_surface_helper<PFN_vkCreateDirectFBSurfaceEXT, VkDirectFBSurfaceCreateInfoEXT>(functions, inst, surface,
820 functions, inst, surface, "vkCreateImagePipeSurfaceFUCHSIA");
823 functions, inst, surface, "vkCreateStreamDescriptorSurfaceGGP");
825 return create_surface_helper<PFN_vkCreateIOSSurfaceMVK, VkIOSSurfaceCreateInfoMVK>(functions, inst, surface,
830 return create_surface_helper<PFN_vkCreateMacOSSurfaceMVK, VkMacOSSurfaceCreateInfoMVK>(functions, inst, surface,
835 return create_surface_helper<PFN_vkCreateMetalSurfaceEXT, VkMetalSurfaceCreateInfoEXT>(functions, inst, surface,
840 return create_surface_helper<PFN_vkCreateScreenSurfaceQNX, VkScreenSurfaceCreateInfoQNX>(functions, inst, surface,
843 return create_surface_helper<PFN_vkCreateViSurfaceNN, VkViSurfaceCreateInfoNN>(functions, inst, surface, "vkCreateViSurfaceNN");
845 return create_surface_helper<PFN_vkCreateWin32SurfaceKHR, VkWin32SurfaceCreateInfoKHR>(functions, inst, surface,
850 return create_surface_helper<PFN_vkCreateXlibSurfaceKHR, VkXlibSurfaceCreateInfoKHR>(functions, inst, surface,
855 return create_surface_helper<PFN_vkCreateWaylandSurfaceKHR, VkWaylandSurfaceCreateInfoKHR>(functions, inst, surface,
860 return create_surface_helper<PFN_vkCreateXcbSurfaceKHR, VkXcbSurfaceCreateInfoKHR>(functions, inst, surface,
866 functions, inst, surface, "vkCreateDisplayPlaneSurfaceKHR");
869 VkResult create_surface(InstWrapper& inst, VkSurfaceKHR& surface, const char* api_selection) {
870 return create_surface(inst.functions, inst.inst, surface, api_selection);