pub struct AccelerationStructureTriangleGeometryDescriptor(/* private fields */);Expand description
Descriptor for triangle geometry in acceleration structures.
C++ equivalent: MTL::AccelerationStructureTriangleGeometryDescriptor
Implementations§
Source§impl AccelerationStructureTriangleGeometryDescriptor
impl AccelerationStructureTriangleGeometryDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new triangle geometry descriptor.
C++ equivalent: static AccelerationStructureTriangleGeometryDescriptor* alloc()->init()
Sourcepub fn allow_duplicate_intersection_function_invocation(&self) -> bool
pub fn allow_duplicate_intersection_function_invocation(&self) -> bool
Get whether duplicate intersection function invocation is allowed.
Sourcepub fn set_allow_duplicate_intersection_function_invocation(&self, allow: bool)
pub fn set_allow_duplicate_intersection_function_invocation(&self, allow: bool)
Set whether duplicate intersection function invocation is allowed.
Sourcepub fn intersection_function_table_offset(&self) -> UInteger
pub fn intersection_function_table_offset(&self) -> UInteger
Get the intersection function table offset.
Sourcepub fn set_intersection_function_table_offset(&self, offset: UInteger)
pub fn set_intersection_function_table_offset(&self, offset: UInteger)
Set the intersection function table offset.
Sourcepub fn set_opaque(&self, opaque: bool)
pub fn set_opaque(&self, opaque: bool)
Set whether geometry is opaque.
Sourcepub fn primitive_data_buffer(&self) -> Option<Buffer>
pub fn primitive_data_buffer(&self) -> Option<Buffer>
Get the primitive data buffer.
Sourcepub fn set_primitive_data_buffer(&self, buffer: Option<&Buffer>)
pub fn set_primitive_data_buffer(&self, buffer: Option<&Buffer>)
Set the primitive data buffer.
Sourcepub fn primitive_data_buffer_offset(&self) -> UInteger
pub fn primitive_data_buffer_offset(&self) -> UInteger
Get the primitive data buffer offset.
Sourcepub fn set_primitive_data_buffer_offset(&self, offset: UInteger)
pub fn set_primitive_data_buffer_offset(&self, offset: UInteger)
Set the primitive data buffer offset.
Sourcepub fn primitive_data_element_size(&self) -> UInteger
pub fn primitive_data_element_size(&self) -> UInteger
Get the primitive data element size.
Sourcepub fn set_primitive_data_element_size(&self, size: UInteger)
pub fn set_primitive_data_element_size(&self, size: UInteger)
Set the primitive data element size.
Sourcepub fn primitive_data_stride(&self) -> UInteger
pub fn primitive_data_stride(&self) -> UInteger
Get the primitive data stride.
Sourcepub fn set_primitive_data_stride(&self, stride: UInteger)
pub fn set_primitive_data_stride(&self, stride: UInteger)
Set the primitive data stride.
Sourcepub fn index_buffer(&self) -> Option<Buffer>
pub fn index_buffer(&self) -> Option<Buffer>
Get the index buffer.
C++ equivalent: Buffer* indexBuffer() const
Sourcepub fn set_index_buffer(&self, buffer: Option<&Buffer>)
pub fn set_index_buffer(&self, buffer: Option<&Buffer>)
Set the index buffer.
C++ equivalent: void setIndexBuffer(Buffer*)
Sourcepub fn index_buffer_offset(&self) -> UInteger
pub fn index_buffer_offset(&self) -> UInteger
Get the index buffer offset.
C++ equivalent: NS::UInteger indexBufferOffset() const
Sourcepub fn set_index_buffer_offset(&self, offset: UInteger)
pub fn set_index_buffer_offset(&self, offset: UInteger)
Set the index buffer offset.
C++ equivalent: void setIndexBufferOffset(NS::UInteger)
Sourcepub fn index_type(&self) -> IndexType
pub fn index_type(&self) -> IndexType
Get the index type.
C++ equivalent: 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(IndexType)
Sourcepub fn vertex_buffer(&self) -> Option<Buffer>
pub fn vertex_buffer(&self) -> Option<Buffer>
Get the vertex buffer.
C++ equivalent: Buffer* vertexBuffer() const
Sourcepub fn set_vertex_buffer(&self, buffer: Option<&Buffer>)
pub fn set_vertex_buffer(&self, buffer: Option<&Buffer>)
Set the vertex buffer.
C++ equivalent: void setVertexBuffer(Buffer*)
Sourcepub fn vertex_buffer_offset(&self) -> UInteger
pub fn vertex_buffer_offset(&self) -> UInteger
Get the vertex buffer offset.
C++ equivalent: NS::UInteger vertexBufferOffset() const
Sourcepub fn set_vertex_buffer_offset(&self, offset: UInteger)
pub fn set_vertex_buffer_offset(&self, offset: UInteger)
Set the vertex buffer offset.
C++ equivalent: void setVertexBufferOffset(NS::UInteger)
Sourcepub fn vertex_format(&self) -> AttributeFormat
pub fn vertex_format(&self) -> AttributeFormat
Get the vertex format.
C++ equivalent: 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(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)
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 transformation_matrix_buffer(&self) -> Option<Buffer>
pub fn transformation_matrix_buffer(&self) -> Option<Buffer>
Get the transformation matrix buffer.
C++ equivalent: Buffer* transformationMatrixBuffer() const
Sourcepub fn set_transformation_matrix_buffer(&self, buffer: Option<&Buffer>)
pub fn set_transformation_matrix_buffer(&self, buffer: Option<&Buffer>)
Set the transformation matrix buffer.
C++ equivalent: void setTransformationMatrixBuffer(Buffer*)
Sourcepub fn transformation_matrix_buffer_offset(&self) -> UInteger
pub fn transformation_matrix_buffer_offset(&self) -> UInteger
Get the transformation matrix buffer offset.
C++ equivalent: NS::UInteger transformationMatrixBufferOffset() const
Sourcepub fn set_transformation_matrix_buffer_offset(&self, offset: UInteger)
pub fn set_transformation_matrix_buffer_offset(&self, offset: UInteger)
Set the transformation matrix buffer offset.
C++ equivalent: void setTransformationMatrixBufferOffset(NS::UInteger)
Sourcepub fn transformation_matrix_layout(&self) -> MatrixLayout
pub fn transformation_matrix_layout(&self) -> MatrixLayout
Get the transformation matrix layout.
C++ equivalent: 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(MatrixLayout)