pub struct ArgumentDescriptor(/* private fields */);Expand description
Describes an argument for creating an argument encoder.
C++ equivalent: MTL::ArgumentDescriptor
Implementations§
Source§impl ArgumentDescriptor
impl ArgumentDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new argument descriptor.
C++ equivalent: ArgumentDescriptor::argumentDescriptor()
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn set_data_type(&self, data_type: DataType)
pub fn set_data_type(&self, data_type: DataType)
Set the data type.
C++ equivalent: void setDataType(DataType)
Sourcepub fn set_index(&self, index: UInteger)
pub fn set_index(&self, index: UInteger)
Set the index.
C++ equivalent: void setIndex(NS::UInteger)
Sourcepub fn access(&self) -> BindingAccess
pub fn access(&self) -> BindingAccess
Get the access mode.
C++ equivalent: BindingAccess access() const
Sourcepub fn set_access(&self, access: BindingAccess)
pub fn set_access(&self, access: BindingAccess)
Set the access mode.
C++ equivalent: void setAccess(BindingAccess)
Sourcepub fn array_length(&self) -> UInteger
pub fn array_length(&self) -> UInteger
Get the array length.
C++ equivalent: NS::UInteger arrayLength() const
Sourcepub fn set_array_length(&self, array_length: UInteger)
pub fn set_array_length(&self, array_length: UInteger)
Set the array length.
C++ equivalent: void setArrayLength(NS::UInteger)
Sourcepub fn texture_type(&self) -> TextureType
pub fn texture_type(&self) -> TextureType
Get the texture type.
C++ equivalent: TextureType textureType() const
Sourcepub fn set_texture_type(&self, texture_type: TextureType)
pub fn set_texture_type(&self, texture_type: TextureType)
Set the texture type.
C++ equivalent: void setTextureType(TextureType)
Sourcepub fn constant_block_alignment(&self) -> UInteger
pub fn constant_block_alignment(&self) -> UInteger
Get the constant block alignment.
C++ equivalent: NS::UInteger constantBlockAlignment() const
Sourcepub fn set_constant_block_alignment(&self, alignment: UInteger)
pub fn set_constant_block_alignment(&self, alignment: UInteger)
Set the constant block alignment.
C++ equivalent: void setConstantBlockAlignment(NS::UInteger)