pub struct LinePatternPipeline {
pub pipeline: RenderPipeline,
pub uniform_bind_group_layout: BindGroupLayout,
pub texture_bind_group_layout: BindGroupLayout,
}Expand description
The line-pattern rendering pipeline.
Uses a two-group bind layout:
- Group 0: view-projection + line-style uniform (binding 0)
- Group 1: pattern texture (binding 0) + sampler (binding 1)
Fields§
§pipeline: RenderPipelineRender pipeline configured for patterned line rendering.
uniform_bind_group_layout: BindGroupLayoutBind group layout (group 0) for view-projection + line-style uniforms.
texture_bind_group_layout: BindGroupLayoutBind group layout (group 1) for per-batch pattern texture + sampler.
Implementations§
Source§impl LinePatternPipeline
impl LinePatternPipeline
Sourcepub fn new(device: &Device, surface_format: TextureFormat) -> Self
pub fn new(device: &Device, surface_format: TextureFormat) -> Self
Create the line-pattern pipeline.
Auto Trait Implementations§
impl Freeze for LinePatternPipeline
impl !RefUnwindSafe for LinePatternPipeline
impl Send for LinePatternPipeline
impl Sync for LinePatternPipeline
impl Unpin for LinePatternPipeline
impl UnsafeUnpin for LinePatternPipeline
impl !UnwindSafe for LinePatternPipeline
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