pub struct ParallelRenderConfig {
pub num_threads: usize,
pub chunk_size: u64,
pub render_config: RenderConfig,
}Expand description
Configuration for the parallel renderer.
Fields§
§num_threads: usizeNumber of worker threads (ignored on WASM).
chunk_size: u64Target number of frames per chunk.
render_config: RenderConfigPer-frame render configuration.
Implementations§
Source§impl ParallelRenderConfig
impl ParallelRenderConfig
Sourcepub fn new(render_config: RenderConfig) -> Self
pub fn new(render_config: RenderConfig) -> Self
Create a configuration with sensible defaults (4 threads, 30-frame chunks).
Sourcepub fn with_threads(self, n: usize) -> Self
pub fn with_threads(self, n: usize) -> Self
Override the number of worker threads.
Sourcepub fn with_chunk_size(self, size: u64) -> Self
pub fn with_chunk_size(self, size: u64) -> Self
Override the chunk size in frames.
Trait Implementations§
Source§impl Clone for ParallelRenderConfig
impl Clone for ParallelRenderConfig
Source§fn clone(&self) -> ParallelRenderConfig
fn clone(&self) -> ParallelRenderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParallelRenderConfig
impl RefUnwindSafe for ParallelRenderConfig
impl Send for ParallelRenderConfig
impl Sync for ParallelRenderConfig
impl Unpin for ParallelRenderConfig
impl UnsafeUnpin for ParallelRenderConfig
impl UnwindSafe for ParallelRenderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more