pub struct IndirectInstanceAccelerationStructureDescriptor(/* private fields */);Expand description
Descriptor for creating an indirect instance acceleration structure.
C++ equivalent: MTL4::IndirectInstanceAccelerationStructureDescriptor
Implementations§
Source§impl IndirectInstanceAccelerationStructureDescriptor
impl IndirectInstanceAccelerationStructureDescriptor
Sourcepub fn instance_count_buffer(&self) -> BufferRange
pub fn instance_count_buffer(&self) -> BufferRange
Get the instance count buffer.
Sourcepub fn set_instance_count_buffer(&self, buffer: BufferRange)
pub fn set_instance_count_buffer(&self, buffer: BufferRange)
Set the instance count buffer.
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 max_instance_count(&self) -> UInteger
pub fn max_instance_count(&self) -> UInteger
Get the max instance count.
Sourcepub fn set_max_instance_count(&self, count: UInteger)
pub fn set_max_instance_count(&self, count: UInteger)
Set the max instance count.
Sourcepub fn max_motion_transform_count(&self) -> UInteger
pub fn max_motion_transform_count(&self) -> UInteger
Get the max motion transform count.
Sourcepub fn set_max_motion_transform_count(&self, count: UInteger)
pub fn set_max_motion_transform_count(&self, count: UInteger)
Set the max motion transform count.
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_buffer(&self) -> BufferRange
pub fn motion_transform_count_buffer(&self) -> BufferRange
Get the motion transform count buffer.
Sourcepub fn set_motion_transform_count_buffer(&self, buffer: BufferRange)
pub fn set_motion_transform_count_buffer(&self, buffer: BufferRange)
Set the motion transform count buffer.
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.