pub struct ArgumentRef(/* private fields */);Expand description
A borrowed reference to a Argument.
Implementations§
Source§impl ArgumentRef
impl ArgumentRef
pub fn name(&self) -> &str
pub fn type_(&self) -> MTLArgumentType
pub fn access(&self) -> MTLArgumentAccess
pub fn index(&self) -> NSUInteger
pub fn is_active(&self) -> bool
pub fn buffer_alignment(&self) -> NSUInteger
pub fn buffer_data_size(&self) -> NSUInteger
pub fn buffer_data_type(&self) -> MTLDataType
pub fn buffer_struct_type(&self) -> &StructTypeRef
pub fn threadgroup_memory_alignment(&self) -> NSUInteger
pub fn threadgroup_memory_data_size(&self) -> NSUInteger
pub fn texture_type(&self) -> MTLTextureType
pub fn texture_data_type(&self) -> MTLDataType
Trait Implementations§
Source§impl AsMut<ArgumentRef> for Argument
impl AsMut<ArgumentRef> for Argument
Source§fn as_mut(&mut self) -> &mut ArgumentRef
fn as_mut(&mut self) -> &mut ArgumentRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ArgumentRef> for Argument
impl AsRef<ArgumentRef> for Argument
Source§fn as_ref(&self) -> &ArgumentRef
fn as_ref(&self) -> &ArgumentRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ArgumentRef> for Argument
impl Borrow<ArgumentRef> for Argument
Source§fn borrow(&self) -> &ArgumentRef
fn borrow(&self) -> &ArgumentRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<ArgumentRef> for Argument
impl BorrowMut<ArgumentRef> for Argument
Source§fn borrow_mut(&mut self) -> &mut ArgumentRef
fn borrow_mut(&mut self) -> &mut ArgumentRef
Mutably borrows from an owned value. Read more
Source§impl Debug for ArgumentRef
impl Debug for ArgumentRef
Source§impl ForeignTypeRef for ArgumentRef
impl ForeignTypeRef for ArgumentRef
Source§type CType = MTLArgument
type CType = MTLArgument
The raw C type.
Source§unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type. Read more
Source§impl Message for ArgumentRef
impl Message for ArgumentRef
Source§unsafe fn send_message<A, R>(
&self,
sel: Sel,
args: A,
) -> Result<R, MessageError>
unsafe fn send_message<A, R>( &self, sel: Sel, args: A, ) -> Result<R, MessageError>
Sends a message to self with the given selector and arguments. Read more
Source§fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
fn verify_message<A, R>(&self, sel: Sel) -> Result<(), MessageError>
Verifies that the argument and return types match the encoding of the
method for the given selector. Read more