pub struct ThreadgroupBinding(/* private fields */);Expand description
Threadgroup binding information.
C++ equivalent: MTL::ThreadgroupBinding
Implementations§
Source§impl ThreadgroupBinding
impl ThreadgroupBinding
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 threadgroup_memory_alignment(&self) -> UInteger
pub fn threadgroup_memory_alignment(&self) -> UInteger
Get the threadgroup memory alignment.
C++ equivalent: NS::UInteger threadgroupMemoryAlignment() const
Sourcepub fn threadgroup_memory_data_size(&self) -> UInteger
pub fn threadgroup_memory_data_size(&self) -> UInteger
Get the threadgroup memory data size.
C++ equivalent: NS::UInteger threadgroupMemoryDataSize() const
Trait Implementations§
Source§impl Clone for ThreadgroupBinding
impl Clone for ThreadgroupBinding
Source§impl Drop for ThreadgroupBinding
impl Drop for ThreadgroupBinding
Source§impl Referencing for ThreadgroupBinding
impl Referencing for ThreadgroupBinding
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 ThreadgroupBinding
impl Sync for ThreadgroupBinding
Auto Trait Implementations§
impl Freeze for ThreadgroupBinding
impl RefUnwindSafe for ThreadgroupBinding
impl Unpin for ThreadgroupBinding
impl UnwindSafe for ThreadgroupBinding
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