light/modules/renderer/public/backend.hpp
light7734 459b3b961d
Some checks reported errors
continuous-integration/drone/push Build was killed
feat(renderer/vk): function loading & device creation
2025-08-05 10:39:08 +03:30

29 lines
442 B
C++

#pragma once
namespace lt::renderer {
class Backend
{
public:
enum class API : uint8_t
{
vulkan,
directx,
};
Backend() = default;
Backend(Backend &&) = default;
auto operator=(Backend &&) -> Backend & = default;
Backend(const Backend &) = delete;
auto operator=(const Backend &) -> Backend & = delete;
virtual ~Backend() = default;
[[nodiscard]] virtual auto get_api() const -> API = 0;
};
} // namespace lt::renderer