Skip to main content

ParallelEncodeCtx

Trait ParallelEncodeCtx 

Source
pub unsafe trait ParallelEncodeCtx { }
Expand description

Marker for a backend context that may be shared, read-only, across the parallel-encode worker fan-out.

§Safety

Implementing this is a claim that concurrent &Self access during command recording is sound: the graphics API allows shared read of device-derived resources, and every interior-mutable field reachable during encode is either atomic or hoisted out of the fan-out before it begins. Each backend’s impl carries that audit (see the module docs in each */parallel_encoder.rs).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§