class

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

ReturnsNameDescription
std::stringGetGraphicsApiName of the live backend: "Vulkan", "D3D12", "D3D11" or "Metal".
boolRequestGraphicsApiPersists the requested backend ("vulkan"/"d3d12"/"d3d11"/"metal", case-insensitive) into the project's Config/engine.mdf and flags the restart.
boolIsGraphicsApiRestartPendingTrue after a successful RequestGraphicsApi for a backend other than the live one — the switch takes effect on the next launch.

Function details

GetGraphicsApi

C++
std::string GetGraphicsApi() const

Name of the live backend: "Vulkan", "D3D12", "D3D11" or "Metal".

RequestGraphicsApi

C++
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

C++
bool IsGraphicsApiRestartPending() const

True after a successful RequestGraphicsApi for a backend other than the live one — the switch takes effect on the next launch.

Generated from Game/MRenderingStatics.h via game.json · Nov 5, 2026Version 1.0.0