pub trait PipelineDescriptor<P>: Clone {
// Required method
fn create(&self, device: &Device) -> P;
}Expand description
A blueprint that compiles into a pipeline of type P.
A PipelineVariant builds one of these and Variants caches the result.
Not comparable or hashable: it may hold wgpu handles and f64 constants,
which is why the variant – not the blueprint – is the cache key.
Deliberately not Send/Sync: a descriptor holds wgpu handles, which are
not thread-safe on the web. A cache and the device it creates against live
together and never cross threads, so requiring it would only rule the web
backend out.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".