| 60 | void Instance::Init(const VkInstanceCreateInfo& info) { ASSERT_EQ(VK_SUCCESS, vk::CreateInstance(&info, NULL, &handle_)); } |
| 61 | |
| 62 | void Instance::Destroy() noexcept { |
| 63 | if (handle_ != VK_NULL_HANDLE) { |
| 64 | vk::DestroyInstance(handle_, nullptr); |
| 65 | handle_ = VK_NULL_HANDLE; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | VkPhysicalDeviceProperties PhysicalDevice::Properties() const { |
| 70 | VkPhysicalDeviceProperties info; |
no test coverage detected