The plugin turns the saved choice into the words its settings page
shows. preference is what the user chose, not what draws now:
RenderingState.nextMode says what the next start will use.
const { preference } = await plugin.rendering.state();
// One word per choice; the Record type makes sure none is missing.
const words: Record<RenderingPreference, string> = {
auto: "Automatic",
gpu: "GPU",
software: "Software",
};
console.log(words[preference]);
The user's saved rendering choice:
"auto"(the player decides: the GPU where this system has a GPU renderer that is not ruled out, software elsewhere),"gpu"or"software". It applies from the next start.