pub struct InstanceAccelerationStructureDescriptor(/* private fields */);Expand description
Descriptor for creating an instance acceleration structure.
C++ equivalent: MTL4::InstanceAccelerationStructureDescriptor
Implementations§
Source§impl InstanceAccelerationStructureDescriptor
impl InstanceAccelerationStructureDescriptor
Sourcepub fn instance_count(&self) -> UInteger
pub fn instance_count(&self) -> UInteger
Get the instance count.
Sourcepub fn set_instance_count(&self, count: UInteger)
pub fn set_instance_count(&self, count: UInteger)
Set the instance count.
Sourcepub fn instance_descriptor_buffer(&self) -> BufferRange
pub fn instance_descriptor_buffer(&self) -> BufferRange
Get the instance descriptor buffer.
Sourcepub fn set_instance_descriptor_buffer(&self, buffer: BufferRange)
pub fn set_instance_descriptor_buffer(&self, buffer: BufferRange)
Set the instance descriptor buffer.
Sourcepub fn instance_descriptor_stride(&self) -> UInteger
pub fn instance_descriptor_stride(&self) -> UInteger
Get the instance descriptor stride.
Sourcepub fn set_instance_descriptor_stride(&self, stride: UInteger)
pub fn set_instance_descriptor_stride(&self, stride: UInteger)
Set the instance descriptor stride.
Sourcepub fn instance_descriptor_type(
&self,
) -> AccelerationStructureInstanceDescriptorType
pub fn instance_descriptor_type( &self, ) -> AccelerationStructureInstanceDescriptorType
Get the instance descriptor type.
Sourcepub fn set_instance_descriptor_type(
&self,
descriptor_type: AccelerationStructureInstanceDescriptorType,
)
pub fn set_instance_descriptor_type( &self, descriptor_type: AccelerationStructureInstanceDescriptorType, )
Set the instance descriptor type.
Sourcepub fn instance_transformation_matrix_layout(&self) -> MatrixLayout
pub fn instance_transformation_matrix_layout(&self) -> MatrixLayout
Get the instance transformation matrix layout.
Sourcepub fn set_instance_transformation_matrix_layout(&self, layout: MatrixLayout)
pub fn set_instance_transformation_matrix_layout(&self, layout: MatrixLayout)
Set the instance transformation matrix layout.
Sourcepub fn motion_transform_buffer(&self) -> BufferRange
pub fn motion_transform_buffer(&self) -> BufferRange
Get the motion transform buffer.
Sourcepub fn set_motion_transform_buffer(&self, buffer: BufferRange)
pub fn set_motion_transform_buffer(&self, buffer: BufferRange)
Set the motion transform buffer.
Sourcepub fn motion_transform_count(&self) -> UInteger
pub fn motion_transform_count(&self) -> UInteger
Get the motion transform count.
Sourcepub fn set_motion_transform_count(&self, count: UInteger)
pub fn set_motion_transform_count(&self, count: UInteger)
Set the motion transform count.
Sourcepub fn motion_transform_stride(&self) -> UInteger
pub fn motion_transform_stride(&self) -> UInteger
Get the motion transform stride.
Sourcepub fn set_motion_transform_stride(&self, stride: UInteger)
pub fn set_motion_transform_stride(&self, stride: UInteger)
Set the motion transform stride.
Sourcepub fn motion_transform_type(&self) -> TransformType
pub fn motion_transform_type(&self) -> TransformType
Get the motion transform type.
Sourcepub fn set_motion_transform_type(&self, transform_type: TransformType)
pub fn set_motion_transform_type(&self, transform_type: TransformType)
Set the motion transform type.
Trait Implementations§
Source§impl Referencing for InstanceAccelerationStructureDescriptor
impl Referencing for InstanceAccelerationStructureDescriptor
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for InstanceAccelerationStructureDescriptor
impl Sync for InstanceAccelerationStructureDescriptor
Auto Trait Implementations§
impl Freeze for InstanceAccelerationStructureDescriptor
impl RefUnwindSafe for InstanceAccelerationStructureDescriptor
impl Unpin for InstanceAccelerationStructureDescriptor
impl UnwindSafe for InstanceAccelerationStructureDescriptor
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