pub struct PointRasterNode { /* private fields */ }Implementations§
Source§impl PointRasterNode
impl PointRasterNode
pub fn new( device: &Device, surface_format: TextureFormat, depth: DepthMode, convention: DepthConvention, ) -> Self
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: &PointMesh<N>,
projection: &Projection<N>,
)where
S: RasterizableSpace<N>,
Sourcepub fn draw_buffer(&mut self, instances: Buffer, count: u32)
pub fn draw_buffer(&mut self, instances: Buffer, count: u32)
Draws count instances from instances; a later upload allocates its own buffer instead of writing into this one.
Auto Trait Implementations§
impl Freeze for PointRasterNode
impl !RefUnwindSafe for PointRasterNode
impl Send for PointRasterNode
impl Sync for PointRasterNode
impl Unpin for PointRasterNode
impl UnsafeUnpin for PointRasterNode
impl !UnwindSafe for PointRasterNode
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