Struct vulkano::acceleration_structure::AabbPositions
source · #[repr(C)]pub struct AabbPositions {
pub min: [f32; 3],
pub max: [f32; 3],
}
Expand description
Specifies two opposing corners of an axis-aligned bounding box.
Each value in min
must be less than or equal to the corresponding value in max
.
Fields§
§min: [f32; 3]
The minimum of the corner coordinates of the bounding box.
The default value is [0.0; 3]
.
max: [f32; 3]
The maximum of the corner coordinates of the bounding box.
The default value is [0.0; 3]
.
Trait Implementations§
source§impl Clone for AabbPositions
impl Clone for AabbPositions
source§fn clone(&self) -> AabbPositions
fn clone(&self) -> AabbPositions
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 moresource§impl Debug for AabbPositions
impl Debug for AabbPositions
source§impl Default for AabbPositions
impl Default for AabbPositions
source§fn default() -> AabbPositions
fn default() -> AabbPositions
Returns the “default value” for a type. Read more
source§impl PartialEq for AabbPositions
impl PartialEq for AabbPositions
source§fn eq(&self, other: &AabbPositions) -> bool
fn eq(&self, other: &AabbPositions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AabbPositions
impl Pod for AabbPositions
impl StructuralPartialEq for AabbPositions
Auto Trait Implementations§
impl RefUnwindSafe for AabbPositions
impl Send for AabbPositions
impl Sync for AabbPositions
impl Unpin for AabbPositions
impl UnwindSafe for AabbPositions
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> BufferContents for Twhere
T: AnyBitPattern + Send + Sync,
impl<T> BufferContents for Twhere T: AnyBitPattern + Send + Sync,
source§const LAYOUT: BufferContentsLayout = const LAYOUT: BufferContentsLayout =
if let Some(layout) = BufferContentsLayout::from_sized(Layout::new::<T>())
{
layout
} else {
{
::core::panicking::panic_fmt(<#[lang = "format_arguments"]>::new_const(&["zero-sized types are not valid buffer contents"]));
};
};
const LAYOUT: BufferContentsLayout = const LAYOUT: BufferContentsLayout = if let Some(layout) = BufferContentsLayout::from_sized(Layout::new::<T>()) { layout } else { { ::core::panicking::panic_fmt(<#[lang = "format_arguments"]>::new_const(&["zero-sized types are not valid buffer contents"])); }; };
The layout of the contents.
unsafe fn ptr_from_slice(slice: NonNull<[u8]>) -> *mut T
source§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
.source§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
.