pub struct ComputePassSampleBufferAttachmentDescriptor(/* private fields */);Expand description
A sample buffer attachment for a compute pass.
C++ equivalent: MTL::ComputePassSampleBufferAttachmentDescriptor
Implementations§
Source§impl ComputePassSampleBufferAttachmentDescriptor
impl ComputePassSampleBufferAttachmentDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new compute pass sample buffer attachment descriptor.
C++ equivalent: static ComputePassSampleBufferAttachmentDescriptor* alloc()->init()
Sourcepub fn sample_buffer(&self) -> Option<CounterSampleBuffer>
pub fn sample_buffer(&self) -> Option<CounterSampleBuffer>
Get the sample buffer.
C++ equivalent: CounterSampleBuffer* sampleBuffer() const
Sourcepub fn set_sample_buffer(&self, sample_buffer: Option<&CounterSampleBuffer>)
pub fn set_sample_buffer(&self, sample_buffer: Option<&CounterSampleBuffer>)
Set the sample buffer.
C++ equivalent: void setSampleBuffer(const MTL::CounterSampleBuffer* sampleBuffer)
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 startOfEncoderSampleIndex)
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 endOfEncoderSampleIndex)