pub struct LineRasterStaticR4Node { /* private fields */ }Implementations§
Source§impl LineRasterStaticR4Node
impl LineRasterStaticR4Node
pub fn new( device: &Device, surface_format: TextureFormat, depth: DepthMode, convention: DepthConvention, ) -> Self
Sourcepub fn upload_mesh(
&mut self,
device: &Device,
queue: &Queue,
mesh: &LineMesh<4>,
)
pub fn upload_mesh( &mut self, device: &Device, queue: &Queue, mesh: &LineMesh<4>, )
Allocates per call; per-frame uploads belong in crate::LineRasterNode.
pub fn set_transform( &self, queue: &Queue, rotor: Rotor4, view_projection: Mat4, viewport_size: Vec2, focal_distance: f32, )
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>, )
Same contract as crate::LineRasterNode::record.
pub fn instance_count(&self) -> u32
Auto Trait Implementations§
impl Freeze for LineRasterStaticR4Node
impl !RefUnwindSafe for LineRasterStaticR4Node
impl Send for LineRasterStaticR4Node
impl Sync for LineRasterStaticR4Node
impl Unpin for LineRasterStaticR4Node
impl UnsafeUnpin for LineRasterStaticR4Node
impl !UnwindSafe for LineRasterStaticR4Node
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