pub struct PipelineBufferDescriptorArray(/* private fields */);Expand description
An array of pipeline buffer descriptors.
C++ equivalent: MTL::PipelineBufferDescriptorArray
Implementations§
Source§impl PipelineBufferDescriptorArray
impl PipelineBufferDescriptorArray
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new pipeline buffer descriptor array.
C++ equivalent: static PipelineBufferDescriptorArray* 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 a PipelineBufferDescriptorArray from a raw pointer.
§Safety
The pointer must be a valid Metal pipeline buffer descriptor array object.
Sourcepub fn object(&self, buffer_index: UInteger) -> Option<PipelineBufferDescriptor>
pub fn object(&self, buffer_index: UInteger) -> Option<PipelineBufferDescriptor>
Get the descriptor at the specified buffer index.
C++ equivalent: PipelineBufferDescriptor* object(NS::UInteger bufferIndex)
Sourcepub fn set_object(
&self,
buffer: &PipelineBufferDescriptor,
buffer_index: UInteger,
)
pub fn set_object( &self, buffer: &PipelineBufferDescriptor, buffer_index: UInteger, )
Set the descriptor at the specified buffer index.
C++ equivalent: void setObject(const MTL::PipelineBufferDescriptor* buffer, NS::UInteger bufferIndex)
Trait Implementations§
Source§impl Drop for PipelineBufferDescriptorArray
impl Drop for PipelineBufferDescriptorArray
Source§impl Referencing for PipelineBufferDescriptorArray
impl Referencing for PipelineBufferDescriptorArray
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for PipelineBufferDescriptorArray
impl Sync for PipelineBufferDescriptorArray
Auto Trait Implementations§
impl Freeze for PipelineBufferDescriptorArray
impl RefUnwindSafe for PipelineBufferDescriptorArray
impl Unpin for PipelineBufferDescriptorArray
impl UnwindSafe for PipelineBufferDescriptorArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more