lsfg-vk/framegen/include/vk/core/instance.hpp
PancakeTAS c3cccb4967
refactor: completely remove default operators
they're just defaults anyways.. no need to be this verbose
2025-09-01 17:37:12 +02:00

29 lines
583 B
C++

#pragma once
#include <vulkan/vulkan_core.h>
#include <memory>
namespace VK::Core {
///
/// C++ wrapper class for a Vulkan instance.
///
/// This class manages the lifetime of a Vulkan instance.
///
class Instance {
public:
///
/// Create the instance.
///
/// @throws VK::vulkan_error if object creation fails.
///
Instance();
/// Get the Vulkan handle.
[[nodiscard]] auto handle() const { return *this->instance; }
private:
std::shared_ptr<VkInstance> instance;
};
}