pub struct BufferBinding(/* private fields */);Expand description
Buffer binding information.
C++ equivalent: MTL::BufferBinding
Implementations§
Source§impl BufferBinding
impl BufferBinding
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
Sourcepub fn is_argument(&self) -> bool
pub fn is_argument(&self) -> bool
Check if this is an argument.
Sourcepub fn binding_type(&self) -> BindingType
pub fn binding_type(&self) -> BindingType
Get the binding type.
Sourcepub fn buffer_alignment(&self) -> UInteger
pub fn buffer_alignment(&self) -> UInteger
Get the buffer alignment.
C++ equivalent: NS::UInteger bufferAlignment() const
Sourcepub fn buffer_data_size(&self) -> UInteger
pub fn buffer_data_size(&self) -> UInteger
Get the buffer data size.
C++ equivalent: NS::UInteger bufferDataSize() const
Sourcepub fn buffer_data_type(&self) -> DataType
pub fn buffer_data_type(&self) -> DataType
Get the buffer data type.
C++ equivalent: DataType bufferDataType() const
Sourcepub fn buffer_pointer_type(&self) -> Option<PointerType>
pub fn buffer_pointer_type(&self) -> Option<PointerType>
Get the buffer pointer type.
C++ equivalent: PointerType* bufferPointerType() const
Sourcepub fn buffer_struct_type(&self) -> Option<StructType>
pub fn buffer_struct_type(&self) -> Option<StructType>
Get the buffer struct type.
C++ equivalent: StructType* bufferStructType() const
Trait Implementations§
Source§impl Clone for BufferBinding
impl Clone for BufferBinding
Source§impl Drop for BufferBinding
impl Drop for BufferBinding
Source§impl Referencing for BufferBinding
impl Referencing for BufferBinding
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 BufferBinding
impl Sync for BufferBinding
Auto Trait Implementations§
impl Freeze for BufferBinding
impl RefUnwindSafe for BufferBinding
impl Unpin for BufferBinding
impl UnwindSafe for BufferBinding
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