UiRenderBackendFactory

Selects the UI render backend implementation. One call site for the CPU→GPU switch.

Properties

Default

(Mode) { get; set } = Mode.CpuSkia: The backend used when a caller does not specify one.

Public Methods

Create

public static IUiRenderBackend Create(Vulkan vulkan, int width, int height, Mode? mode = null)

Creates a UI render backend of the requested (or default) kind.

Parameters:

  • vulkan (Vulkan): The shared Vulkan context.
  • width (int): Initial target width in pixels, greater than zero.
  • height (int): Initial target height in pixels, greater than zero.
  • mode (Mode?): Backend kind, or null to use Default. (Default: null)

Returns: IUiRenderBackend