pub struct Argument(/* private fields */);Expand description
Information about a function argument.
C++ equivalent: MTL::Argument
Implementations§
Source§impl Argument
impl Argument
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
C++ equivalent: BindingAccess access() const
Sourcepub fn array_length(&self) -> UInteger
pub fn array_length(&self) -> UInteger
Get the array length.
C++ equivalent: NS::UInteger arrayLength() const
Sourcepub fn buffer_alignment(&self) -> UInteger
pub fn buffer_alignment(&self) -> UInteger
Get the buffer alignment.
C++ equivalent: NS::UInteger bufferAlignment() const
Sourcepub fn buffer_data_size(&self) -> UInteger
pub fn buffer_data_size(&self) -> UInteger
Get the buffer data size.
C++ equivalent: NS::UInteger bufferDataSize() const
Sourcepub fn buffer_data_type(&self) -> DataType
pub fn buffer_data_type(&self) -> DataType
Get the buffer data type.
C++ equivalent: DataType bufferDataType() const
Sourcepub fn buffer_pointer_type(&self) -> Option<PointerType>
pub fn buffer_pointer_type(&self) -> Option<PointerType>
Get the buffer pointer type.
C++ equivalent: PointerType* bufferPointerType() const
Sourcepub fn buffer_struct_type(&self) -> Option<StructType>
pub fn buffer_struct_type(&self) -> Option<StructType>
Get the buffer struct type.
C++ equivalent: StructType* bufferStructType() const
Sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Check if the argument is active.
C++ equivalent: bool isActive() const
Sourcepub fn is_depth_texture(&self) -> bool
pub fn is_depth_texture(&self) -> bool
Check if this is a depth texture.
C++ equivalent: bool isDepthTexture() const
Sourcepub fn texture_data_type(&self) -> DataType
pub fn texture_data_type(&self) -> DataType
Get the texture data type.
C++ equivalent: DataType textureDataType() const
Sourcepub fn texture_type(&self) -> TextureType
pub fn texture_type(&self) -> TextureType
Get the texture type.
C++ equivalent: TextureType textureType() const
Sourcepub fn threadgroup_memory_alignment(&self) -> UInteger
pub fn threadgroup_memory_alignment(&self) -> UInteger
Get the threadgroup memory alignment.
C++ equivalent: NS::UInteger threadgroupMemoryAlignment() const
Sourcepub fn threadgroup_memory_data_size(&self) -> UInteger
pub fn threadgroup_memory_data_size(&self) -> UInteger
Get the threadgroup memory data size.
C++ equivalent: NS::UInteger threadgroupMemoryDataSize() const
Sourcepub fn argument_type(&self) -> ArgumentType
pub fn argument_type(&self) -> ArgumentType
Get the argument type.
C++ equivalent: ArgumentType type() const