pub struct AccelerationStructureBoundingBoxGeometryDescriptor(/* private fields */);Expand description
Descriptor for bounding box geometry in acceleration structures.
C++ equivalent: MTL::AccelerationStructureBoundingBoxGeometryDescriptor
Implementations§
Source§impl AccelerationStructureBoundingBoxGeometryDescriptor
impl AccelerationStructureBoundingBoxGeometryDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new bounding box geometry descriptor.
C++ equivalent: static AccelerationStructureBoundingBoxGeometryDescriptor* alloc()->init()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create from a raw pointer.
§Safety
The pointer must be a valid Metal bounding box geometry descriptor.
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 bounding_box_buffer(&self) -> Option<Buffer>
pub fn bounding_box_buffer(&self) -> Option<Buffer>
Get the bounding box buffer.
C++ equivalent: Buffer* boundingBoxBuffer() const
Sourcepub fn set_bounding_box_buffer(&self, buffer: Option<&Buffer>)
pub fn set_bounding_box_buffer(&self, buffer: Option<&Buffer>)
Set the bounding box buffer.
C++ equivalent: void setBoundingBoxBuffer(Buffer*)
Sourcepub fn bounding_box_buffer_offset(&self) -> UInteger
pub fn bounding_box_buffer_offset(&self) -> UInteger
Get the bounding box buffer offset.
C++ equivalent: NS::UInteger boundingBoxBufferOffset() const
Sourcepub fn set_bounding_box_buffer_offset(&self, offset: UInteger)
pub fn set_bounding_box_buffer_offset(&self, offset: UInteger)
Set the bounding box buffer offset.
C++ equivalent: void setBoundingBoxBufferOffset(NS::UInteger)
Sourcepub fn bounding_box_count(&self) -> UInteger
pub fn bounding_box_count(&self) -> UInteger
Get the bounding box count.
C++ equivalent: NS::UInteger boundingBoxCount() const
Sourcepub fn set_bounding_box_count(&self, count: UInteger)
pub fn set_bounding_box_count(&self, count: UInteger)
Set the bounding box count.
C++ equivalent: void setBoundingBoxCount(NS::UInteger)
Sourcepub fn bounding_box_stride(&self) -> UInteger
pub fn bounding_box_stride(&self) -> UInteger
Get the bounding box stride.
C++ equivalent: NS::UInteger boundingBoxStride() const
Sourcepub fn set_bounding_box_stride(&self, stride: UInteger)
pub fn set_bounding_box_stride(&self, stride: UInteger)
Set the bounding box stride.
C++ equivalent: void setBoundingBoxStride(NS::UInteger)