[−][src]Struct azul_webrender::RendererOptions
Fields
device_pixel_ratio: f32
resource_override_path: Option<PathBuf>
enable_aa: bool
enable_dithering: bool
max_recorded_profiles: usize
precache_flags: ShaderPrecacheFlags
renderer_kind: RendererKind
enable_subpixel_aa: bool
Enable sub-pixel anti-aliasing if a fast implementation is available.
force_subpixel_aa: bool
Enable sub-pixel anti-aliasing if it requires a slow implementation.
clear_color: Option<ColorF>
enable_clear_scissor: bool
max_texture_size: Option<i32>
max_glyph_cache_size: Option<usize>
upload_method: UploadMethod
workers: Option<Arc<ThreadPool>>
enable_multithreading: bool
blob_image_handler: Option<Box<dyn BlobImageHandler>>
recorder: Option<Box<dyn ApiRecordingReceiver>>
thread_listener: Option<Box<dyn ThreadListener + Send + Sync>>
size_of_op: Option<VoidPtrToSizeFn>
enclosing_size_of_op: Option<VoidPtrToSizeFn>
cached_programs: Option<Rc<ProgramCache>>
debug_flags: DebugFlags
renderer_id: Option<u64>
scene_builder_hooks: Option<Box<dyn SceneBuilderHooks + Send>>
sampler: Option<Box<dyn AsyncPropertySampler + Send>>
chase_primitive: ChasePrimitive
support_low_priority_transactions: bool
namespace_alloc_by_client: bool
enable_picture_caching: bool
testing: bool
gpu_supports_fast_clears: bool
Set to true if this GPU supports hardware fast clears as a performance optimization. Likely requires benchmarking on various GPUs to see if it is a performance win. The default is false, which tends to be best performance on lower end / integrated GPUs.
allow_dual_source_blending: bool
allow_advanced_blend_equation: bool
allow_pixel_local_storage_support: bool
If true, allow WR to use pixel local storage if the device supports it. For now, this defaults to false since the code is still experimental and not complete. This option will probably be removed once support is complete, and WR can implicitly choose whether to make use of PLS.
allow_texture_storage_support: bool
If true, allow textures to be initialized with glTexStorage. This affects VRAM consumption and data upload paths.
allow_texture_swizzling: bool
If true, we allow the data uploaded in a different format from the one expected by the driver, pretending the format is matching, and swizzling the components on all the shader sampling.
batch_lookback_count: usize
Number of batches to look back in history for adding the current transparent instance into.
start_debug_server: bool
Start the debug server for this renderer.
dump_shader_source: Option<String>
Output the source of the shader with the given name.
surface_origin_is_top_left: bool
compositor_config: CompositorConfig
The configuration options defining how WR composites the final scene.
enable_gpu_markers: bool
panic_on_gl_error: bool
If true, panic whenever a GL error occurs. This has a significant performance impact, so only use when debugging specific problems!
Trait Implementations
impl Default for RendererOptions
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RendererOptions
impl !Send for RendererOptions
impl !Sync for RendererOptions
impl Unpin for RendererOptions
impl !UnwindSafe for RendererOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,