pub struct RenderInput<B: Backend> {
pub device: B::Device,
pub point_count: u64,
pub colors_sh: B::FloatTensorPrimitive,
pub opacities: B::FloatTensorPrimitive,
pub positions: B::FloatTensorPrimitive,
pub rotations: B::FloatTensorPrimitive,
pub scalings: B::FloatTensorPrimitive,
}
Expand description
Rendering inputs (forward).
Fields§
§device: B::Device
Device for rendering.
point_count: u64
Point count.
It is P
.
colors_sh: B::FloatTensorPrimitive
The shape is [P, M * 3]
.
opacities: B::FloatTensorPrimitive
The shape is [P, 1]
.
positions: B::FloatTensorPrimitive
The shape is [P, 3]
.
rotations: B::FloatTensorPrimitive
The shape is [P, 4]
.
scalings: B::FloatTensorPrimitive
The shape is [P, 3]
.
Trait Implementations§
source§impl<B: Clone + Backend> Clone for RenderInput<B>
impl<B: Clone + Backend> Clone for RenderInput<B>
source§fn clone(&self) -> RenderInput<B>
fn clone(&self) -> RenderInput<B>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<B> Freeze for RenderInput<B>
impl<B> RefUnwindSafe for RenderInput<B>
impl<B> Send for RenderInput<B>
impl<B> Sync for RenderInput<B>
impl<B> Unpin for RenderInput<B>
impl<B> UnwindSafe for RenderInput<B>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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