pub struct PrimitiveAccelerationStructureDescriptor(/* private fields */);Expand description
Descriptor for creating a primitive acceleration structure.
C++ equivalent: MTL4::PrimitiveAccelerationStructureDescriptor
Implementations§
Source§impl PrimitiveAccelerationStructureDescriptor
impl PrimitiveAccelerationStructureDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a PrimitiveAccelerationStructureDescriptor from a raw pointer.
Sourcepub fn geometry_descriptors_raw(&self) -> *mut c_void
pub fn geometry_descriptors_raw(&self) -> *mut c_void
Get the geometry descriptors (as raw pointer to NSArray).
C++ equivalent: NS::Array* geometryDescriptors() const
Sourcepub fn set_geometry_descriptors_raw(&self, descriptors: *const c_void)
pub fn set_geometry_descriptors_raw(&self, descriptors: *const c_void)
Set the geometry descriptors (from raw pointer to NSArray).
C++ equivalent: void setGeometryDescriptors(const NS::Array*)
Sourcepub fn motion_end_border_mode(&self) -> MotionBorderMode
pub fn motion_end_border_mode(&self) -> MotionBorderMode
Get the motion end border mode.
C++ equivalent: MTL::MotionBorderMode motionEndBorderMode() const
Sourcepub fn set_motion_end_border_mode(&self, mode: MotionBorderMode)
pub fn set_motion_end_border_mode(&self, mode: MotionBorderMode)
Set the motion end border mode.
C++ equivalent: void setMotionEndBorderMode(MTL::MotionBorderMode)
Sourcepub fn motion_end_time(&self) -> f32
pub fn motion_end_time(&self) -> f32
Get the motion end time.
C++ equivalent: float motionEndTime() const
Sourcepub fn set_motion_end_time(&self, time: f32)
pub fn set_motion_end_time(&self, time: f32)
Set the motion end time.
C++ equivalent: void setMotionEndTime(float)
Sourcepub fn motion_keyframe_count(&self) -> UInteger
pub fn motion_keyframe_count(&self) -> UInteger
Get the motion keyframe count.
C++ equivalent: NS::UInteger motionKeyframeCount() const
Sourcepub fn set_motion_keyframe_count(&self, count: UInteger)
pub fn set_motion_keyframe_count(&self, count: UInteger)
Set the motion keyframe count.
C++ equivalent: void setMotionKeyframeCount(NS::UInteger)
Sourcepub fn motion_start_border_mode(&self) -> MotionBorderMode
pub fn motion_start_border_mode(&self) -> MotionBorderMode
Get the motion start border mode.
C++ equivalent: MTL::MotionBorderMode motionStartBorderMode() const
Sourcepub fn set_motion_start_border_mode(&self, mode: MotionBorderMode)
pub fn set_motion_start_border_mode(&self, mode: MotionBorderMode)
Set the motion start border mode.
C++ equivalent: void setMotionStartBorderMode(MTL::MotionBorderMode)
Sourcepub fn motion_start_time(&self) -> f32
pub fn motion_start_time(&self) -> f32
Get the motion start time.
C++ equivalent: float motionStartTime() const
Sourcepub fn set_motion_start_time(&self, time: f32)
pub fn set_motion_start_time(&self, time: f32)
Set the motion start time.
C++ equivalent: void setMotionStartTime(float)