pub struct Instance {
pub bottom: usize,
pub transform: [[f32; 4]; 3],
pub id: u32,
pub mask: u8,
pub contribution: u32,
pub flags: InstanceFlags,
}Expand description
An instance of a bottom level in the top level.
Fields§
§bottom: usizeWhich bottom level.
transform: [[f32; 4]; 3]Object to world: three rows of four.
id: u32InstanceID (24 bits).
mask: u8InstanceMask: the instance is seen by a ray whose mask shares a bit with it.
contribution: u32InstanceContributionToHitGroupIndex (24 bits).
flags: InstanceFlagsWhat the instance does besides place its bottom level.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
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