pub struct StageInputOutputDescriptor(/* private fields */);Expand description
Describes the input and output data for a compute kernel stage.
C++ equivalent: MTL::StageInputOutputDescriptor
Implementations§
Source§impl StageInputOutputDescriptor
impl StageInputOutputDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new stage input/output descriptor.
C++ equivalent: StageInputOutputDescriptor::stageInputOutputDescriptor()
Sourcepub fn layouts(&self) -> Option<BufferLayoutDescriptorArray>
pub fn layouts(&self) -> Option<BufferLayoutDescriptorArray>
Get the buffer layouts array.
C++ equivalent: BufferLayoutDescriptorArray* layouts() const
Sourcepub fn attributes(&self) -> Option<AttributeDescriptorArray>
pub fn attributes(&self) -> Option<AttributeDescriptorArray>
Get the attributes array.
C++ equivalent: AttributeDescriptorArray* attributes() const
Sourcepub fn index_type(&self) -> IndexType
pub fn index_type(&self) -> IndexType
Get the index type.
C++ equivalent: IndexType indexType() const
Sourcepub fn set_index_type(&self, index_type: IndexType)
pub fn set_index_type(&self, index_type: IndexType)
Set the index type.
C++ equivalent: void setIndexType(IndexType)
Sourcepub fn index_buffer_index(&self) -> UInteger
pub fn index_buffer_index(&self) -> UInteger
Get the index buffer index.
C++ equivalent: NS::UInteger indexBufferIndex() const
Sourcepub fn set_index_buffer_index(&self, index: UInteger)
pub fn set_index_buffer_index(&self, index: UInteger)
Set the index buffer index.
C++ equivalent: void setIndexBufferIndex(NS::UInteger)
Trait Implementations§
Source§impl Clone for StageInputOutputDescriptor
impl Clone for StageInputOutputDescriptor
Source§impl Default for StageInputOutputDescriptor
impl Default for StageInputOutputDescriptor
Source§impl Drop for StageInputOutputDescriptor
impl Drop for StageInputOutputDescriptor
Source§impl Referencing for StageInputOutputDescriptor
impl Referencing for StageInputOutputDescriptor
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 StageInputOutputDescriptor
impl Sync for StageInputOutputDescriptor
Auto Trait Implementations§
impl Freeze for StageInputOutputDescriptor
impl RefUnwindSafe for StageInputOutputDescriptor
impl Unpin for StageInputOutputDescriptor
impl UnwindSafe for StageInputOutputDescriptor
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