#[repr(C)]pub struct MTLAccelerationStructureMotionInstanceDescriptor {
pub options: MTLAccelerationStructureInstanceOptions,
pub mask: u32,
pub intersectionFunctionTableOffset: u32,
pub accelerationStructureIndex: u32,
pub userID: u32,
pub motionTransformsStartIndex: u32,
pub motionTransformsCount: u32,
pub motionStartBorderMode: MTLMotionBorderMode,
pub motionEndBorderMode: MTLMotionBorderMode,
pub motionStartTime: c_float,
pub motionEndTime: c_float,
}MTLAccelerationStructure only.Expand description
Fields§
§options: MTLAccelerationStructureInstanceOptionsInstance options
mask: u32Instance mask used to ignore geometry during ray tracing
intersectionFunctionTableOffset: u32Used to index into intersection function tables
accelerationStructureIndex: u32Acceleration structure index to use for this instance
userID: u32User-assigned instance ID to help identify this instance in an application-defined way
motionTransformsStartIndex: u32The index of the first set of transforms describing one keyframe of the animation. These transforms are stored in a separate buffer and they are uniformly distributed over time time span of the motion.
motionTransformsCount: u32The count of motion transforms belonging to this motion which are stored in consecutive memory addresses at the separate motionTransforms buffer.
motionStartBorderMode: MTLMotionBorderModeMotion border mode describing what happens if acceleration structure is sampled before motionStartTime
motionEndBorderMode: MTLMotionBorderModeMotion border mode describing what happens if acceleration structure is sampled after motionEndTime
motionStartTime: c_floatMotion start time of this instance
motionEndTime: c_floatMotion end time of this instance
Trait Implementations§
Source§impl Clone for MTLAccelerationStructureMotionInstanceDescriptor
impl Clone for MTLAccelerationStructureMotionInstanceDescriptor
Source§fn clone(&self) -> MTLAccelerationStructureMotionInstanceDescriptor
fn clone(&self) -> MTLAccelerationStructureMotionInstanceDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for MTLAccelerationStructureMotionInstanceDescriptor
impl PartialEq for MTLAccelerationStructureMotionInstanceDescriptor
Source§fn eq(&self, other: &MTLAccelerationStructureMotionInstanceDescriptor) -> bool
fn eq(&self, other: &MTLAccelerationStructureMotionInstanceDescriptor) -> bool
self and other values to be equal, and is used by ==.