pub struct BufferLayoutDescriptor(/* private fields */);Expand description
Describes the layout of data in a buffer for stage input/output.
C++ equivalent: MTL::BufferLayoutDescriptor
Implementations§
Source§impl BufferLayoutDescriptor
impl BufferLayoutDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new buffer layout descriptor.
C++ equivalent: BufferLayoutDescriptor::alloc()->init()
Sourcepub fn step_function(&self) -> StepFunction
pub fn step_function(&self) -> StepFunction
Get the step function.
C++ equivalent: StepFunction stepFunction() const
Sourcepub fn set_step_function(&self, step_function: StepFunction)
pub fn set_step_function(&self, step_function: StepFunction)
Set the step function.
C++ equivalent: void setStepFunction(StepFunction)
Sourcepub fn step_rate(&self) -> UInteger
pub fn step_rate(&self) -> UInteger
Get the step rate.
C++ equivalent: NS::UInteger stepRate() const
Sourcepub fn set_step_rate(&self, step_rate: UInteger)
pub fn set_step_rate(&self, step_rate: UInteger)
Set the step rate.
C++ equivalent: void setStepRate(NS::UInteger)
Sourcepub fn set_stride(&self, stride: UInteger)
pub fn set_stride(&self, stride: UInteger)
Set the stride.
C++ equivalent: void setStride(NS::UInteger)
Trait Implementations§
Source§impl Clone for BufferLayoutDescriptor
impl Clone for BufferLayoutDescriptor
Source§impl Default for BufferLayoutDescriptor
impl Default for BufferLayoutDescriptor
Source§impl Drop for BufferLayoutDescriptor
impl Drop for BufferLayoutDescriptor
Source§impl Referencing for BufferLayoutDescriptor
impl Referencing for BufferLayoutDescriptor
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 BufferLayoutDescriptor
impl Sync for BufferLayoutDescriptor
Auto Trait Implementations§
impl Freeze for BufferLayoutDescriptor
impl RefUnwindSafe for BufferLayoutDescriptor
impl Unpin for BufferLayoutDescriptor
impl UnwindSafe for BufferLayoutDescriptor
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