Lines Matching defs:instance_

88     static inline VkInstance instance_ = nullptr;
142 VkResult result = vkCreateInstance(&instanceCreateInfo, nullptr, &instance_);
143 std::cout << "instance_ ptr: " << instance_ << std::endl;
144 if (result != VK_SUCCESS || instance_ == nullptr) {
251 if (instance_ != nullptr) {
253 vkDestroySurfaceKHR(instance_, surface_, nullptr);
255 vkDestroyInstance(instance_, nullptr);
304 std::cout << "instance_ ptr: " << instance_ << std::endl;
305 ASSERT_NE(instance_, nullptr);
307 vkGetInstanceProcAddr(instance_, "vkDestroyInstance"));
310 vkGetInstanceProcAddr(instance_, "vkEnumeratePhysicalDevices"));
312 vkCreateDevice = reinterpret_cast<PFN_vkCreateDevice>(vkGetInstanceProcAddr(instance_, "vkCreateDevice"));
314 vkDestroyDevice = reinterpret_cast<PFN_vkDestroyDevice>(vkGetInstanceProcAddr(instance_, "vkDestroyDevice"));
317 vkGetInstanceProcAddr(instance_, "vkDestroySurfaceKHR"));
321 vkGetInstanceProcAddr(instance_, "vkCreateSurfaceOHOS"));
325 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceSurfaceCapabilitiesKHR"));
328 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceSurfacePresentModesKHR"));
331 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceSurfaceFormatsKHR"));
334 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceQueueFamilyProperties"));
337 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceProperties"));
340 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceFeatures"));
343 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceMemoryProperties"));
346 vkGetInstanceProcAddr(instance_, "vkGetPhysicalDeviceSurfaceSupportKHR"));
349 vkGetInstanceProcAddr(instance_, "vkCreateDebugUtilsMessengerEXT"));
352 vkGetInstanceProcAddr(instance_, "vkDestroyDebugUtilsMessengerEXT"));
367 std::cout << "instance_ ptr: " << instance_ << std::endl;
368 ASSERT_NE(instance_, nullptr);
371 VkResult err = vkEnumeratePhysicalDevices(instance_, &gpuCount, nullptr);
375 err = vkEnumeratePhysicalDevices(instance_, &gpuCount, physicalDevices.data());