BackendOption
public sealed record class BackendOptionOne entry in RenderInfo.AvailableBackends: a renderer, whether it can be selected, and a plain-language reason when it cannot.
The reason is the point. "Metal" greyed out with no explanation invites the guess that the feature is broken; "Metal exists only on macOS and iOS" ends the question.
Properties
| Member | Description |
|---|---|
| Whether it can be selected right now, after a restart, or not at all. |
| Whether a UI should let the user pick this. |
| Which renderer this entry describes. |
| What this renderer needs that is not on the machine — empty when nothing is, which is almost always. Separate from A list because a renderer can want more than one thing — a Linux box may be short both a Vulkan loader and a driver for its card — even though today there is exactly one entry anywhere: MoltenVK, which is how Vulkan runs on a Mac. Test whether it is empty rather than testing for that name; the whole point is that a UI can offer to help without knowing what is being asked for. |
| Display name, e.g. "OpenGL" or "Software (CPU)". |
| Why this backend is unavailable or needs a restart. Null when it can just be selected. |