pub struct RenderPassSampleBufferAttachmentDescriptor(/* private fields */);Expand description
A sample buffer attachment for a render pass.
C++ equivalent: MTL::RenderPassSampleBufferAttachmentDescriptor
Note: This type has separate indices for vertex and fragment stages.
Implementations§
Source§impl RenderPassSampleBufferAttachmentDescriptor
impl RenderPassSampleBufferAttachmentDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new render pass sample buffer attachment descriptor.
C++ equivalent: static RenderPassSampleBufferAttachmentDescriptor* 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_vertex_sample_index(&self) -> UInteger
pub fn start_of_vertex_sample_index(&self) -> UInteger
Get the start of vertex sample index.
C++ equivalent: NS::UInteger startOfVertexSampleIndex() const
Sourcepub fn set_start_of_vertex_sample_index(&self, index: UInteger)
pub fn set_start_of_vertex_sample_index(&self, index: UInteger)
Set the start of vertex sample index.
C++ equivalent: void setStartOfVertexSampleIndex(NS::UInteger startOfVertexSampleIndex)
Sourcepub fn end_of_vertex_sample_index(&self) -> UInteger
pub fn end_of_vertex_sample_index(&self) -> UInteger
Get the end of vertex sample index.
C++ equivalent: NS::UInteger endOfVertexSampleIndex() const
Sourcepub fn set_end_of_vertex_sample_index(&self, index: UInteger)
pub fn set_end_of_vertex_sample_index(&self, index: UInteger)
Set the end of vertex sample index.
C++ equivalent: void setEndOfVertexSampleIndex(NS::UInteger endOfVertexSampleIndex)
Sourcepub fn start_of_fragment_sample_index(&self) -> UInteger
pub fn start_of_fragment_sample_index(&self) -> UInteger
Get the start of fragment sample index.
C++ equivalent: NS::UInteger startOfFragmentSampleIndex() const
Sourcepub fn set_start_of_fragment_sample_index(&self, index: UInteger)
pub fn set_start_of_fragment_sample_index(&self, index: UInteger)
Set the start of fragment sample index.
C++ equivalent: void setStartOfFragmentSampleIndex(NS::UInteger startOfFragmentSampleIndex)
Sourcepub fn end_of_fragment_sample_index(&self) -> UInteger
pub fn end_of_fragment_sample_index(&self) -> UInteger
Get the end of fragment sample index.
C++ equivalent: NS::UInteger endOfFragmentSampleIndex() const
Sourcepub fn set_end_of_fragment_sample_index(&self, index: UInteger)
pub fn set_end_of_fragment_sample_index(&self, index: UInteger)
Set the end of fragment sample index.
C++ equivalent: void setEndOfFragmentSampleIndex(NS::UInteger endOfFragmentSampleIndex)