pub struct LineRasterNode { /* private fields */ }Implementations§
Source§impl LineRasterNode
impl LineRasterNode
pub fn new( device: &Device, surface_format: TextureFormat, depth: DepthMode, convention: DepthConvention, ) -> Self
pub fn set_root_camera(&self, queue: &Queue, eye: &Eye, viewport_size: Vec2)
pub fn set_camera( &self, queue: &Queue, view_projection: Mat4, viewport_size: Vec2, )
pub fn upload<S, const N: usize>(
&mut self,
device: &Device,
queue: &Queue,
mesh: &LineMesh<N>,
projection: &Projection<N>,
samples_per_segment: usize,
)where
S: RasterizableSpace<N>,
pub fn segment_count(&self) -> u32
pub fn upload_segments( &mut self, device: &Device, queue: &Queue, segments: &[SegmentRecord], )
Sourcepub fn record(
&self,
encoder: &mut CommandEncoder,
view: &TextureView,
depth_view: Option<&TextureView>,
viewport: Option<&Viewport>,
)
pub fn record( &self, encoder: &mut CommandEncoder, view: &TextureView, depth_view: Option<&TextureView>, viewport: Option<&Viewport>, )
Records into the caller’s encoder with LoadOp::Load on both attachments; depth_view is Some iff the pipeline has depth.
pub fn draw(&self, rp: &mut RenderPass<'_>, viewport: Option<&Viewport>)
Auto Trait Implementations§
impl Freeze for LineRasterNode
impl !RefUnwindSafe for LineRasterNode
impl Send for LineRasterNode
impl Sync for LineRasterNode
impl Unpin for LineRasterNode
impl UnsafeUnpin for LineRasterNode
impl !UnwindSafe for LineRasterNode
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