API Reference · Capturing a frame

RendererPreference

Namespace: Ava3D

public enum RendererPreference

Which device SceneRenderer.Create should try for. What it got is SceneRenderer.Kind.

Values

ValueDescription
Gpu

The platform's best GPU that can be had without a window: Metal on macOS and iOS; OpenGL on Windows and Linux when the application is running on an OpenGL platform, else Vulkan through the system loader; and the CPU when none of those can be made — including always in a browser.

Metal

Metal, or the CPU when there is no Metal device — which is every platform but Apple's.

Vulkan

Vulkan — through MoltenVK on a Mac, where it has to be installed; through vulkan-1 or libvulkan elsewhere — or the CPU when no device can be made.

OpenGl

OpenGL, on a context of its own from the platform graphics the application was started with; the CPU when the application is not running on OpenGL, since there is then no context to make one from.

Software

The CPU renderer. Always available, always the same pixels everywhere, always slower.

See also