pub struct RenderInput<B: Backend> {Show 31 fields
pub colors_rgb_3d: B::FloatTensorPrimitive,
pub colors_sh: B::FloatTensorPrimitive,
pub colors_sh_degree_max: u32,
pub conics: B::FloatTensorPrimitive,
pub depths: B::FloatTensorPrimitive,
pub focal_length_x: f32,
pub focal_length_y: f32,
pub image_size_half_x: f32,
pub image_size_half_y: f32,
pub image_size_x: u32,
pub image_size_y: u32,
pub is_colors_rgb_3d_not_clamped: B::FloatTensorPrimitive,
pub opacities_3d: B::FloatTensorPrimitive,
pub point_count: u32,
pub point_indices: B::IntTensorPrimitive,
pub point_rendered_counts: B::IntTensorPrimitive,
pub positions_2d: B::FloatTensorPrimitive,
pub positions_3d: B::FloatTensorPrimitive,
pub positions_3d_in_normalized: B::FloatTensorPrimitive,
pub radii: B::IntTensorPrimitive,
pub rotations: B::FloatTensorPrimitive,
pub rotations_matrix: B::FloatTensorPrimitive,
pub scalings: B::FloatTensorPrimitive,
pub tile_count_x: u32,
pub tile_count_y: u32,
pub tile_point_ranges: B::IntTensorPrimitive,
pub transmittances: B::FloatTensorPrimitive,
pub view_bound_x: f32,
pub view_bound_y: f32,
pub view_position: [f32; 3],
pub view_transform: [[f32; 4]; 4],
}
Expand description
Rendering inputs (backward).
Fields§
§colors_rgb_3d: B::FloatTensorPrimitive
The shape is [P, 3]
colors_sh: B::FloatTensorPrimitive
The shape is [P, M * 3]
<- [P, M, 3]
colors_sh_degree_max: u32
(0 ~ 3)
conics: B::FloatTensorPrimitive
The shape is [P, 3]
depths: B::FloatTensorPrimitive
The shape is [P]
focal_length_x: f32
f_x <- I_x / tan(Fov_x / 2) / 2
focal_length_y: f32
f_y <- I_y / tan(Fov_y / 2) / 2
image_size_half_x: f32
I_x / 2
image_size_half_y: f32
I_y / 2
image_size_x: u32
I_x
image_size_y: u32
I_y
is_colors_rgb_3d_not_clamped: B::FloatTensorPrimitive
The shape is [P, 3]
opacities_3d: B::FloatTensorPrimitive
The shape is [P, 1]
point_count: u32
P
point_indices: B::IntTensorPrimitive
The shape is [T]
point_rendered_counts: B::IntTensorPrimitive
The shape is [I_y, I_x]
positions_2d: B::FloatTensorPrimitive
The shape is [P, 2]
positions_3d: B::FloatTensorPrimitive
The shape is [P, 3]
positions_3d_in_normalized: B::FloatTensorPrimitive
The shape is [P, 2]
radii: B::IntTensorPrimitive
The shape is [P]
rotations: B::FloatTensorPrimitive
The shape is [P, 4]
rotations_matrix: B::FloatTensorPrimitive
The shape is [P, 3, 3]
scalings: B::FloatTensorPrimitive
The shape is [P, 3]
tile_count_x: u32
I_x / T_x
tile_count_y: u32
I_y / T_y
tile_point_ranges: B::IntTensorPrimitive
The shape is [I_y / T_y, I_x / T_x, 2]
transmittances: B::FloatTensorPrimitive
The shape is [I_y, I_x]
view_bound_x: f32
tan(Fov_x / 2) * (C_f + 1)
view_bound_y: f32
tan(Fov_y / 2) * (C_f + 1)
view_position: [f32; 3]
[3]
view_transform: [[f32; 4]; 4]
[3 (+ 1), 3 + 1]
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>where
<B as Backend>::FloatTensorPrimitive: RefUnwindSafe,
<B as Backend>::IntTensorPrimitive: RefUnwindSafe,
impl<B> Send for RenderInput<B>
impl<B> Sync for RenderInput<B>
impl<B> Unpin for RenderInput<B>
impl<B> UnwindSafe for RenderInput<B>where
<B as Backend>::FloatTensorPrimitive: UnwindSafe,
<B as Backend>::IntTensorPrimitive: UnwindSafe,
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