pub struct ArgumentDescriptor { /* private fields */ }Expand description
Re-exports the Metal framework surface for this item.
Safe Rust description of MTLArgumentDescriptor.
Implementations§
Source§impl ArgumentDescriptor
impl ArgumentDescriptor
Sourcepub const fn buffer(index: usize, access: usize) -> Self
pub const fn buffer(index: usize, access: usize) -> Self
Describe a buffer pointer argument at index.
Sourcepub const fn texture(index: usize, texture_type: usize, access: usize) -> Self
pub const fn texture(index: usize, texture_type: usize, access: usize) -> Self
Describe a texture argument at index.
Sourcepub const fn constant(
data_type: usize,
index: usize,
array_length: usize,
) -> Self
pub const fn constant( data_type: usize, index: usize, array_length: usize, ) -> Self
Describe a constant block argument using a raw MTLDataType value.
Sourcepub fn with_array_length(self, array_length: usize) -> Self
pub fn with_array_length(self, array_length: usize) -> Self
Override the descriptor’s array length.
Sourcepub fn with_constant_block_alignment(self, alignment: usize) -> Self
pub fn with_constant_block_alignment(self, alignment: usize) -> Self
Override the descriptor’s constant-block alignment.
Trait Implementations§
Source§impl Clone for ArgumentDescriptor
impl Clone for ArgumentDescriptor
Source§fn clone(&self) -> ArgumentDescriptor
fn clone(&self) -> ArgumentDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ArgumentDescriptor
Auto Trait Implementations§
impl Freeze for ArgumentDescriptor
impl RefUnwindSafe for ArgumentDescriptor
impl Send for ArgumentDescriptor
impl Sync for ArgumentDescriptor
impl Unpin for ArgumentDescriptor
impl UnsafeUnpin for ArgumentDescriptor
impl UnwindSafe for ArgumentDescriptor
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