Home -> RenderPluginEnumerator -> GetPreferredPlugin

Description

The GetPreferredPlugin method returns the preferred renderer plugin from the filtered set.

ImportantImportant

The preferred family order is platform-specific: Direct3D, Vulkan, then OpenGL on Windows; Metal, Vulkan, then OpenGL on macOS; and Vulkan then OpenGL on Linux. Windows Direct3D 11 is preferred over Direct3D 12 when both are available.

Usage

std::optional<RendererPlugin> GetPreferredPlugin() const;

Return value

[std::optional<RendererPlugin>]
The preferred renderer plugin, or std::nullopt if the filtered set is empty.

See also