pub struct PointCloudDrawData { /* private fields */ }Expand description
A point cloud drawing operation. Expected to be recreated every frame.
Implementations§
Source§impl PointCloudDrawData
impl PointCloudDrawData
Sourcepub fn new(
builder: PointCloudBuilder<'_>,
) -> Result<Self, PointCloudDrawDataError>
pub fn new( builder: PointCloudBuilder<'_>, ) -> Result<Self, PointCloudDrawDataError>
Transforms and uploads point cloud data to be consumed by gpu.
Try to bundle all points into a single draw data instance whenever possible. Number of vertices and colors has to be equal.
If no batches are passed, all points are assumed to be in a single batch with identity transform.
Trait Implementations§
Source§impl Clone for PointCloudDrawData
impl Clone for PointCloudDrawData
Source§fn clone(&self) -> PointCloudDrawData
fn clone(&self) -> PointCloudDrawData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DrawData for PointCloudDrawData
impl DrawData for PointCloudDrawData
type Renderer = PointCloudRenderer
Source§fn collect_drawables(
&self,
_view_info: &DrawableCollectionViewInfo,
collector: &mut DrawableCollector<'_>,
)
fn collect_drawables( &self, _view_info: &DrawableCollectionViewInfo, collector: &mut DrawableCollector<'_>, )
Collects all drawables for all phases of a specific view. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PointCloudDrawData
impl !UnwindSafe for PointCloudDrawData
impl Freeze for PointCloudDrawData
impl Send for PointCloudDrawData
impl Sync for PointCloudDrawData
impl Unpin for PointCloudDrawData
impl UnsafeUnpin for PointCloudDrawData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more