pub struct GradientPipeline {
pub pipeline: RenderPipeline,
pub bind_group_layout: BindGroupLayout,
}Expand description
The compiled gradient pipeline: gradient quads rendered via a per-draw uniform buffer carrying gradient type, stops, and geometry.
Fields§
§pipeline: RenderPipelineThe render pipeline (vertex + fragment stages, alpha blending).
bind_group_layout: BindGroupLayoutLayout of bind group 0: viewport uniform (binding 0) and gradient uniform buffer (binding 1).
Implementations§
Source§impl GradientPipeline
impl GradientPipeline
Sourcepub fn new(device: &Device) -> Self
pub fn new(device: &Device) -> Self
Build the gradient pipeline for a colour target in TARGET_FORMAT.
Auto Trait Implementations§
impl Freeze for GradientPipeline
impl !RefUnwindSafe for GradientPipeline
impl Send for GradientPipeline
impl Sync for GradientPipeline
impl Unpin for GradientPipeline
impl UnsafeUnpin for GradientPipeline
impl !UnwindSafe for GradientPipeline
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