MRenderingStatics
Reflected façade over the renderer's backend selection, so Visual Script graphs can read the active graphics API and request a different one. A request never switches the live device — it writes the persisted rendering.graphics_api project setting and flags a restart, exactly like the editor's Project Settings ▸ Rendering selector. Stateless — a Visual Script graph can call these on any instance the VM hands it.
- Module
- Game
- Header
#include "Game/MRenderingStatics.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Public functions
| Returns | Name | Description |
|---|---|---|
std::string | GetGraphicsApi | Name of the live backend: "Vulkan", "D3D12", "D3D11" or "Metal". |
bool | RequestGraphicsApi | Persists the requested backend ("vulkan"/"d3d12"/"d3d11"/"metal", case-insensitive) into the project's Config/engine.mdf and flags the restart. |
bool | IsGraphicsApiRestartPending | True after a successful RequestGraphicsApi for a backend other than the live one — the switch takes effect on the next launch. |
Function details
GetGraphicsApi
std::string GetGraphicsApi() constName of the live backend: "Vulkan", "D3D12", "D3D11" or "Metal".
RequestGraphicsApi
bool RequestGraphicsApi(const std::string& name)Persists the requested backend ("vulkan"/"d3d12"/"d3d11"/"metal", case-insensitive) into the project's Config/engine.mdf and flags the restart. Returns false for an unknown name, a backend this machine has no registered module for, or when no project config path exists.
IsGraphicsApiRestartPending
bool IsGraphicsApiRestartPending() constTrue after a successful RequestGraphicsApi for a backend other than the live one — the switch takes effect on the next launch.