Pipeline

Trait Pipeline 

Source
pub trait Pipeline:
    Any
    + MaybeSend
    + MaybeSync {
    // Required method
    fn new(device: &Device, queue: &Queue, format: TextureFormat) -> Self
       where Self: Sized;

    // Provided method
    fn trim(&mut self) { ... }
}
Expand description

The pipeline of a graphics Primitive.

Required Methods§

Source

fn new(device: &Device, queue: &Queue, format: TextureFormat) -> Self
where Self: Sized,

Creates the Pipeline of a Primitive.

This will only be called once, when the first Primitive with this kind of Pipeline is encountered.

Provided Methods§

Source

fn trim(&mut self)

Trims any cached data in the Pipeline.

This will normally be called at the end of a frame.

Implementors§