pub struct ResourceViewPoolDescriptor(/* private fields */);Expand description
Descriptor for creating a resource view pool.
C++ equivalent: MTL::ResourceViewPoolDescriptor
Implementations§
Source§impl ResourceViewPoolDescriptor
impl ResourceViewPoolDescriptor
Sourcepub fn alloc() -> Option<Self>
pub fn alloc() -> Option<Self>
Allocate a new resource view pool descriptor.
C++ equivalent: static ResourceViewPoolDescriptor* alloc()
Sourcepub fn init(&self) -> Option<Self>
pub fn init(&self) -> Option<Self>
Initialize an allocated descriptor.
C++ equivalent: ResourceViewPoolDescriptor* init()
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Set the label.
C++ equivalent: void setLabel(const NS::String*)
Sourcepub fn resource_view_count(&self) -> UInteger
pub fn resource_view_count(&self) -> UInteger
Get the resource view count.
C++ equivalent: NS::UInteger resourceViewCount() const
Sourcepub fn set_resource_view_count(&self, count: UInteger)
pub fn set_resource_view_count(&self, count: UInteger)
Set the resource view count.
C++ equivalent: void setResourceViewCount(NS::UInteger)
Trait Implementations§
Source§impl Clone for ResourceViewPoolDescriptor
impl Clone for ResourceViewPoolDescriptor
Source§impl Debug for ResourceViewPoolDescriptor
impl Debug for ResourceViewPoolDescriptor
Source§impl Default for ResourceViewPoolDescriptor
impl Default for ResourceViewPoolDescriptor
Source§impl Drop for ResourceViewPoolDescriptor
impl Drop for ResourceViewPoolDescriptor
Source§impl Referencing for ResourceViewPoolDescriptor
impl Referencing for ResourceViewPoolDescriptor
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 ResourceViewPoolDescriptor
impl Sync for ResourceViewPoolDescriptor
Auto Trait Implementations§
impl Freeze for ResourceViewPoolDescriptor
impl RefUnwindSafe for ResourceViewPoolDescriptor
impl Unpin for ResourceViewPoolDescriptor
impl UnwindSafe for ResourceViewPoolDescriptor
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