pub struct ResourceStatePassSampleBufferAttachmentDescriptor(/* private fields */);Expand description
A descriptor for a sample buffer attachment in a resource state pass.
C++ equivalent: MTL::ResourceStatePassSampleBufferAttachmentDescriptor
Implementations§
Source§impl ResourceStatePassSampleBufferAttachmentDescriptor
impl ResourceStatePassSampleBufferAttachmentDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new sample buffer attachment descriptor.
C++ equivalent: 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 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)