pub struct VertexBufferLayoutDescriptorArray(/* private fields */);Expand description
An array of vertex buffer layout descriptors.
C++ equivalent: MTL::VertexBufferLayoutDescriptorArray
Implementations§
Source§impl VertexBufferLayoutDescriptorArray
impl VertexBufferLayoutDescriptorArray
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new vertex buffer layout descriptor array.
C++ equivalent: static VertexBufferLayoutDescriptorArray* 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 VertexBufferLayoutDescriptorArray from a raw pointer.
§Safety
The pointer must be a valid Metal vertex buffer layout descriptor array object.
Sourcepub fn object(&self, index: UInteger) -> Option<VertexBufferLayoutDescriptor>
pub fn object(&self, index: UInteger) -> Option<VertexBufferLayoutDescriptor>
Get the descriptor at the specified index.
C++ equivalent: VertexBufferLayoutDescriptor* object(NS::UInteger index)
Sourcepub fn set_object(
&self,
buffer_desc: &VertexBufferLayoutDescriptor,
index: UInteger,
)
pub fn set_object( &self, buffer_desc: &VertexBufferLayoutDescriptor, index: UInteger, )
Set the descriptor at the specified index.
C++ equivalent: void setObject(const MTL::VertexBufferLayoutDescriptor* bufferDesc, NS::UInteger index)
Trait Implementations§
Source§impl Referencing for VertexBufferLayoutDescriptorArray
impl Referencing for VertexBufferLayoutDescriptorArray
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 VertexBufferLayoutDescriptorArray
impl Sync for VertexBufferLayoutDescriptorArray
Auto Trait Implementations§
impl Freeze for VertexBufferLayoutDescriptorArray
impl RefUnwindSafe for VertexBufferLayoutDescriptorArray
impl Unpin for VertexBufferLayoutDescriptorArray
impl UnwindSafe for VertexBufferLayoutDescriptorArray
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