VelloOptions
struct · ferroui-vello · v0.5.0
struct VelloOptions
Options for the Vello rendering subsystem.
Members
rendering_modes
rendering_modes: [Option<VelloRenderingMode>; 3]
The rendering modes in the order they are tried: the first one that
is available draws. None ends the list.
The hybrid and the GPU mode draw the window of a platform that
renders on a graphics device, and each is available when the crate
was built with its feature (hybrid, gpu) and the device runs it.
What is drawn into memory (render target bitmaps, layers, the
framebuffer of a platform that renders in software) is drawn by the
CPU mode whenever the list has it, wherever it stands: a scene that
ends as pixels in memory gains nothing from a round over the GPU. A
list without the CPU mode draws those in its GPU modes too, and has
no mode that can draw on a machine without a graphics device.
use_opacity_save_layer
use_opacity_save_layer: bool
Use a layer to apply opacity, so that every visual is rendered to its own layer when opacity is applied.
new
fn new() -> Self
Creates the default options.
with_rendering_mode
fn with_rendering_mode(mode: VelloRenderingMode) -> Self
The options with one rendering mode and no other to fall back to.
rendering_mode_order
fn rendering_mode_order(self: &Self) -> Vec<VelloRenderingMode>
The rendering modes in the order they are tried.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherSimdFrom<T, S>SimdInto<T, S>Equivalent<K>PointableAutoreleaseSafeCloneCopyDebugStructuralPartialEqPartialEqEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.