#[repr(C)]pub struct MTLIndirectAccelerationStructureMotionInstanceDescriptor {
pub options: MTLAccelerationStructureInstanceOptions,
pub mask: u32,
pub intersectionFunctionTableOffset: u32,
pub userID: u32,
pub accelerationStructureID: MTLResourceID,
pub motionTransformsStartIndex: u32,
pub motionTransformsCount: u32,
pub motionStartBorderMode: MTLMotionBorderMode,
pub motionEndBorderMode: MTLMotionBorderMode,
pub motionStartTime: c_float,
pub motionEndTime: c_float,
}MTLAccelerationStructure and MTLTypes 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
userID: u32User-assigned instance ID to help identify this instance in an application-defined way
accelerationStructureID: MTLResourceIDAcceleration structure resource handle to use for this instance
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 MTLIndirectAccelerationStructureMotionInstanceDescriptor
impl Clone for MTLIndirectAccelerationStructureMotionInstanceDescriptor
Source§fn clone(&self) -> MTLIndirectAccelerationStructureMotionInstanceDescriptor
fn clone(&self) -> MTLIndirectAccelerationStructureMotionInstanceDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for MTLIndirectAccelerationStructureMotionInstanceDescriptor
impl PartialEq for MTLIndirectAccelerationStructureMotionInstanceDescriptor
Source§fn eq(
&self,
other: &MTLIndirectAccelerationStructureMotionInstanceDescriptor,
) -> bool
fn eq( &self, other: &MTLIndirectAccelerationStructureMotionInstanceDescriptor, ) -> bool
self and other values to be equal, and is used by ==.