pub struct AccelerationStructureTriangleGeometryDescriptor(/* private fields */);Expand description
Descriptor for triangle geometry in an acceleration structure.
C++ equivalent: MTL4::AccelerationStructureTriangleGeometryDescriptor
Implementations§
Source§impl AccelerationStructureTriangleGeometryDescriptor
impl AccelerationStructureTriangleGeometryDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create an AccelerationStructureTriangleGeometryDescriptor from a raw pointer.
Sourcepub fn index_buffer(&self) -> BufferRange
pub fn index_buffer(&self) -> BufferRange
Get the index buffer.
C++ equivalent: BufferRange indexBuffer() const
Sourcepub fn set_index_buffer(&self, buffer: BufferRange)
pub fn set_index_buffer(&self, buffer: BufferRange)
Set the index buffer.
C++ equivalent: void setIndexBuffer(const MTL4::BufferRange)
Sourcepub fn index_type(&self) -> IndexType
pub fn index_type(&self) -> IndexType
Get the index type.
C++ equivalent: MTL::IndexType indexType() const
Sourcepub fn set_index_type(&self, index_type: IndexType)
pub fn set_index_type(&self, index_type: IndexType)
Set the index type.
C++ equivalent: void setIndexType(MTL::IndexType)
Sourcepub fn transformation_matrix_buffer(&self) -> BufferRange
pub fn transformation_matrix_buffer(&self) -> BufferRange
Get the transformation matrix buffer.
C++ equivalent: BufferRange transformationMatrixBuffer() const
Sourcepub fn set_transformation_matrix_buffer(&self, buffer: BufferRange)
pub fn set_transformation_matrix_buffer(&self, buffer: BufferRange)
Set the transformation matrix buffer.
C++ equivalent: void setTransformationMatrixBuffer(const MTL4::BufferRange)
Sourcepub fn transformation_matrix_layout(&self) -> MatrixLayout
pub fn transformation_matrix_layout(&self) -> MatrixLayout
Get the transformation matrix layout.
C++ equivalent: MTL::MatrixLayout transformationMatrixLayout() const
Sourcepub fn set_transformation_matrix_layout(&self, layout: MatrixLayout)
pub fn set_transformation_matrix_layout(&self, layout: MatrixLayout)
Set the transformation matrix layout.
C++ equivalent: void setTransformationMatrixLayout(MTL::MatrixLayout)
Sourcepub fn triangle_count(&self) -> UInteger
pub fn triangle_count(&self) -> UInteger
Get the triangle count.
C++ equivalent: NS::UInteger triangleCount() const
Sourcepub fn set_triangle_count(&self, count: UInteger)
pub fn set_triangle_count(&self, count: UInteger)
Set the triangle count.
C++ equivalent: void setTriangleCount(NS::UInteger)
Sourcepub fn vertex_buffer(&self) -> BufferRange
pub fn vertex_buffer(&self) -> BufferRange
Get the vertex buffer.
C++ equivalent: BufferRange vertexBuffer() const
Sourcepub fn set_vertex_buffer(&self, buffer: BufferRange)
pub fn set_vertex_buffer(&self, buffer: BufferRange)
Set the vertex buffer.
C++ equivalent: void setVertexBuffer(const MTL4::BufferRange)
Sourcepub fn vertex_format(&self) -> AttributeFormat
pub fn vertex_format(&self) -> AttributeFormat
Get the vertex format.
C++ equivalent: MTL::AttributeFormat vertexFormat() const
Sourcepub fn set_vertex_format(&self, format: AttributeFormat)
pub fn set_vertex_format(&self, format: AttributeFormat)
Set the vertex format.
C++ equivalent: void setVertexFormat(MTL::AttributeFormat)
Sourcepub fn vertex_stride(&self) -> UInteger
pub fn vertex_stride(&self) -> UInteger
Get the vertex stride.
C++ equivalent: NS::UInteger vertexStride() const
Sourcepub fn set_vertex_stride(&self, stride: UInteger)
pub fn set_vertex_stride(&self, stride: UInteger)
Set the vertex stride.
C++ equivalent: void setVertexStride(NS::UInteger)