#pragma once namespace Donut { // which graphics backend the app runs on, selected once at startup (from // settings) before the window is created. the rendering itself goes through // the RHI (rendering/rhi.h) and the shared renderers; this is only the // backend selector the window + application branch on. class RendererAPI { public: enum class API { None = 0, OpenGL = 1, Vulkan = 2, }; static auto get_api() -> API { return s_api; } static auto set_api(API api) -> void { s_api = api; } private: inline static API s_api = API::None; }; }