rodecomp/Source/Render/RenderBackends.h
2026-10-24 00:35:19 +00:00

22 lines
600 B
C++

#ifndef RAGNAROK_SOURCE_RENDER_RENDERBACKENDS_H
#define RAGNAROK_SOURCE_RENDER_RENDERBACKENDS_H
#include <cstdint>
#include <string>
#include <vector>
// Setup-screen backend choice: a 32-bit identity followed by the display name.
// The original list is built from constants only; it never probes installed
// Direct3D runtimes or creates a device.
struct RenderBackend {
/* 0000 */ std::int32_t identity;
/* 0004 */ std::string name;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(RenderBackend) == 28);
#endif
std::vector<RenderBackend> EnumerateRenderBackends();
#endif