pub struct AccelerationStructurePassSampleBufferAttachmentDescriptor(/* private fields */);Expand description
Descriptor for sample buffer attachments in an acceleration structure pass.
C++ equivalent: MTL::AccelerationStructurePassSampleBufferAttachmentDescriptor
Implementations§
Source§impl AccelerationStructurePassSampleBufferAttachmentDescriptor
impl AccelerationStructurePassSampleBufferAttachmentDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new sample buffer attachment descriptor.
C++ equivalent: static AccelerationStructurePassSampleBufferAttachmentDescriptor* 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 sample buffer attachment descriptor.
Sourcepub fn sample_buffer_ptr(&self) -> *mut c_void
pub fn sample_buffer_ptr(&self) -> *mut c_void
Get the sample buffer.
§Safety
Returns raw pointer to CounterSampleBuffer.
C++ equivalent: CounterSampleBuffer* sampleBuffer() const
Sourcepub unsafe fn set_sample_buffer_ptr(&self, sample_buffer: *const c_void)
pub unsafe fn set_sample_buffer_ptr(&self, sample_buffer: *const c_void)
Set the sample buffer.
§Safety
The sample_buffer pointer must be valid or null.
C++ equivalent: void setSampleBuffer(CounterSampleBuffer*)
Sourcepub fn start_of_encoder_sample_index(&self) -> UInteger
pub fn start_of_encoder_sample_index(&self) -> UInteger
Get the start of encoder sample index.
C++ equivalent: NS::UInteger startOfEncoderSampleIndex() const
Sourcepub fn set_start_of_encoder_sample_index(&self, index: UInteger)
pub fn set_start_of_encoder_sample_index(&self, index: UInteger)
Set the start of encoder sample index.
C++ equivalent: void setStartOfEncoderSampleIndex(NS::UInteger)
Sourcepub fn end_of_encoder_sample_index(&self) -> UInteger
pub fn end_of_encoder_sample_index(&self) -> UInteger
Get the end of encoder sample index.
C++ equivalent: NS::UInteger endOfEncoderSampleIndex() const
Sourcepub fn set_end_of_encoder_sample_index(&self, index: UInteger)
pub fn set_end_of_encoder_sample_index(&self, index: UInteger)
Set the end of encoder sample index.
C++ equivalent: void setEndOfEncoderSampleIndex(NS::UInteger)