pub struct AccelerationStructureMotionTriangleGeometryDescriptor(/* private fields */);Expand description
Descriptor for motion triangle geometry in an acceleration structure.
C++ equivalent: MTL4::AccelerationStructureMotionTriangleGeometryDescriptor
Implementations§
Source§impl AccelerationStructureMotionTriangleGeometryDescriptor
impl AccelerationStructureMotionTriangleGeometryDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create an AccelerationStructureMotionTriangleGeometryDescriptor from a raw pointer.
Sourcepub fn index_buffer(&self) -> BufferRange
pub fn index_buffer(&self) -> BufferRange
Get the index buffer.
Sourcepub fn set_index_buffer(&self, buffer: BufferRange)
pub fn set_index_buffer(&self, buffer: BufferRange)
Set the index buffer.
Sourcepub fn index_type(&self) -> IndexType
pub fn index_type(&self) -> IndexType
Get the index type.
Sourcepub fn set_index_type(&self, index_type: IndexType)
pub fn set_index_type(&self, index_type: IndexType)
Set the index type.
Sourcepub fn transformation_matrix_buffer(&self) -> BufferRange
pub fn transformation_matrix_buffer(&self) -> BufferRange
Get the transformation matrix buffer.
Sourcepub fn set_transformation_matrix_buffer(&self, buffer: BufferRange)
pub fn set_transformation_matrix_buffer(&self, buffer: BufferRange)
Set the transformation matrix buffer.
Sourcepub fn transformation_matrix_layout(&self) -> MatrixLayout
pub fn transformation_matrix_layout(&self) -> MatrixLayout
Get the transformation matrix layout.
Sourcepub fn set_transformation_matrix_layout(&self, layout: MatrixLayout)
pub fn set_transformation_matrix_layout(&self, layout: MatrixLayout)
Set the transformation matrix layout.
Sourcepub fn triangle_count(&self) -> UInteger
pub fn triangle_count(&self) -> UInteger
Get the triangle count.
Sourcepub fn set_triangle_count(&self, count: UInteger)
pub fn set_triangle_count(&self, count: UInteger)
Set the triangle count.
Sourcepub fn vertex_buffers(&self) -> BufferRange
pub fn vertex_buffers(&self) -> BufferRange
Get the vertex buffers (for motion keyframes).
Sourcepub fn set_vertex_buffers(&self, buffers: BufferRange)
pub fn set_vertex_buffers(&self, buffers: BufferRange)
Set the vertex buffers (for motion keyframes).
Sourcepub fn vertex_format(&self) -> AttributeFormat
pub fn vertex_format(&self) -> AttributeFormat
Get the vertex format.
Sourcepub fn set_vertex_format(&self, format: AttributeFormat)
pub fn set_vertex_format(&self, format: AttributeFormat)
Set the vertex format.
Sourcepub fn vertex_stride(&self) -> UInteger
pub fn vertex_stride(&self) -> UInteger
Get the vertex stride.
Sourcepub fn set_vertex_stride(&self, stride: UInteger)
pub fn set_vertex_stride(&self, stride: UInteger)
Set the vertex stride.
Trait Implementations§
Source§impl Referencing for AccelerationStructureMotionTriangleGeometryDescriptor
impl Referencing for AccelerationStructureMotionTriangleGeometryDescriptor
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 AccelerationStructureMotionTriangleGeometryDescriptor
impl Sync for AccelerationStructureMotionTriangleGeometryDescriptor
Auto Trait Implementations§
impl Freeze for AccelerationStructureMotionTriangleGeometryDescriptor
impl RefUnwindSafe for AccelerationStructureMotionTriangleGeometryDescriptor
impl Unpin for AccelerationStructureMotionTriangleGeometryDescriptor
impl UnwindSafe for AccelerationStructureMotionTriangleGeometryDescriptor
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