Struct re_renderer::renderer::depth_cloud::gpu_data::DepthCloudInfoUBO
source · #[repr(C)]pub struct DepthCloudInfoUBO {
pub world_from_rdf: Mat4,
pub depth_camera_intrinsics: Mat3,
pub outline_mask_id: UVec2,
pub picking_layer_object_id: PickingLayerObjectId,
pub world_depth_from_texture_depth: f32,
pub point_radius_from_world_depth: f32,
pub min_max_depth_in_world: [f32; 2],
pub colormap: u32,
pub sample_type: u32,
pub radius_boost_in_ui_points: f32,
pub _row_padding: [f32; 1],
pub _end_padding: [PaddingRow; 6],
}
Fields§
§world_from_rdf: Mat4
The extrinsics of the camera used for the projection.
depth_camera_intrinsics: Mat3
§outline_mask_id: UVec2
§picking_layer_object_id: PickingLayerObjectId
§world_depth_from_texture_depth: f32
Multiplier to get world-space depth from whatever is in the texture.
point_radius_from_world_depth: f32
Point radius is calculated as world-space depth times this value.
min_max_depth_in_world: [f32; 2]
The minimum and maximum depth value in world-space, for use with the colormap.
colormap: u32
Which colormap should be used.
sample_type: u32
One of SAMPLE_TYPE_*
.
radius_boost_in_ui_points: f32
Changes over different draw-phases.
_row_padding: [f32; 1]
§_end_padding: [PaddingRow; 6]
Implementations§
source§impl DepthCloudInfoUBO
impl DepthCloudInfoUBO
pub fn from_depth_cloud( radius_boost_in_ui_points: f32, depth_cloud: &DepthCloud ) -> Result<Self, DepthCloudDrawDataError>
Trait Implementations§
source§impl Clone for DepthCloudInfoUBO
impl Clone for DepthCloudInfoUBO
source§fn clone(&self) -> DepthCloudInfoUBO
fn clone(&self) -> DepthCloudInfoUBO
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 moreimpl Copy for DepthCloudInfoUBO
impl Pod for DepthCloudInfoUBO
Auto Trait Implementations§
impl Freeze for DepthCloudInfoUBO
impl RefUnwindSafe for DepthCloudInfoUBO
impl Send for DepthCloudInfoUBO
impl Sync for DepthCloudInfoUBO
impl Unpin for DepthCloudInfoUBO
impl UnwindSafe for DepthCloudInfoUBO
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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