pub struct SolidPipeline {
pub pipeline: RenderPipeline,
pub globals_layout: BindGroupLayout,
}Expand description
The compiled solid-fill / SDF pipeline plus the bind-group layout its draws need.
Fields§
§pipeline: RenderPipelineThe render pipeline (vertex + fragment stages, alpha blending).
globals_layout: BindGroupLayoutLayout of bind group 0 (the viewport uniform).
Implementations§
Source§impl SolidPipeline
impl SolidPipeline
Sourcepub fn new(device: &Device) -> Self
pub fn new(device: &Device) -> Self
Build the solid pipeline for a colour target in TARGET_FORMAT.
Auto Trait Implementations§
impl Freeze for SolidPipeline
impl !RefUnwindSafe for SolidPipeline
impl Send for SolidPipeline
impl Sync for SolidPipeline
impl Unpin for SolidPipeline
impl UnsafeUnpin for SolidPipeline
impl !UnwindSafe for SolidPipeline
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