Lines Matching refs:functions

168 InstWrapper::InstWrapper(VulkanFunctions& functions, VkAllocationCallbacks* callbacks) noexcept
169 : functions(&functions), callbacks(callbacks) {}
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);
177 functions = other.functions;
184 functions->vkDestroyInstance(inst, callbacks);
185 functions = other.functions;
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);
231 VkResult res = functions->vkEnumerateDeviceLayerProperties(phys_dev, &count, nullptr);
235 res = functions->vkEnumerateDeviceLayerProperties(phys_dev, &count, layer_props.data());
244 VkResult res = functions->vkEnumerateDeviceExtensionProperties(physical_device, nullptr, &count, nullptr);
248 res = functions->vkEnumerateDeviceExtensionProperties(physical_device, nullptr, &count, extensions.data());
257 VkResult res = functions->vkEnumerateDeviceExtensionProperties(physical_device, layer_name, &count, nullptr);
261 res = functions->vkEnumerateDeviceExtensionProperties(physical_device, layer_name, &count, extensions.data());
268 : functions(inst_wrapper.functions), callbacks(callbacks){};
269 DeviceWrapper::DeviceWrapper(VulkanFunctions& functions, VkDevice device, VkAllocationCallbacks* callbacks) noexcept
270 : functions(&functions), dev(device), callbacks(callbacks){};
271 DeviceWrapper::~DeviceWrapper() noexcept { functions->vkDestroyDevice(dev, callbacks); }
274 functions = other.functions;
281 functions->vkDestroyDevice(dev, callbacks);
282 functions = other.functions;
291 ASSERT_EQ(result_to_check, functions->vkCreateDevice(phys_dev, create_info.get(), callbacks, &dev));
628 // functions
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);
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");
870 return create_surface(inst.functions, inst.inst, surface, api_selection);