pub struct PipelineBufferDescriptor(/* private fields */);Implementations§
Source§impl PipelineBufferDescriptor
impl PipelineBufferDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new pipeline buffer descriptor.
C++ equivalent: static PipelineBufferDescriptor* 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 PipelineBufferDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal pipeline buffer descriptor object.
Sourcepub fn mutability(&self) -> Mutability
pub fn mutability(&self) -> Mutability
Get the mutability of the buffer.
C++ equivalent: Mutability mutability() const
Sourcepub fn set_mutability(&self, mutability: Mutability)
pub fn set_mutability(&self, mutability: Mutability)
Set the mutability of the buffer.
C++ equivalent: void setMutability(MTL::Mutability mutability)
Trait Implementations§
Source§impl Clone for PipelineBufferDescriptor
impl Clone for PipelineBufferDescriptor
Source§impl Debug for PipelineBufferDescriptor
impl Debug for PipelineBufferDescriptor
Source§impl Drop for PipelineBufferDescriptor
impl Drop for PipelineBufferDescriptor
Source§impl Referencing for PipelineBufferDescriptor
impl Referencing for PipelineBufferDescriptor
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 PipelineBufferDescriptor
impl Sync for PipelineBufferDescriptor
Auto Trait Implementations§
impl Freeze for PipelineBufferDescriptor
impl RefUnwindSafe for PipelineBufferDescriptor
impl Unpin for PipelineBufferDescriptor
impl UnwindSafe for PipelineBufferDescriptor
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