pub struct ArrayType(/* private fields */);Expand description
An array type for reflection.
C++ equivalent: MTL::ArrayType
Implementations§
Source§impl ArrayType
impl ArrayType
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Get the data type.
C++ equivalent: DataType dataType() const
Sourcepub fn argument_index_stride(&self) -> UInteger
pub fn argument_index_stride(&self) -> UInteger
Get the argument index stride.
C++ equivalent: NS::UInteger argumentIndexStride() 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 element_type(&self) -> DataType
pub fn element_type(&self) -> DataType
Get the element type.
C++ equivalent: DataType elementType() const
Sourcepub fn element_array_type(&self) -> Option<ArrayType>
pub fn element_array_type(&self) -> Option<ArrayType>
Get the element array type (if element is an array).
C++ equivalent: ArrayType* elementArrayType()
Sourcepub fn element_pointer_type(&self) -> Option<PointerType>
pub fn element_pointer_type(&self) -> Option<PointerType>
Get the element pointer type (if element is a pointer).
C++ equivalent: PointerType* elementPointerType()
Sourcepub fn element_struct_type(&self) -> Option<StructType>
pub fn element_struct_type(&self) -> Option<StructType>
Get the element struct type (if element is a struct).
C++ equivalent: StructType* elementStructType()
Sourcepub fn element_texture_reference_type(&self) -> Option<TextureReferenceType>
pub fn element_texture_reference_type(&self) -> Option<TextureReferenceType>
Get the element texture reference type (if element is a texture).
C++ equivalent: TextureReferenceType* elementTextureReferenceType()
Sourcepub fn element_tensor_reference_type(&self) -> Option<TensorReferenceType>
pub fn element_tensor_reference_type(&self) -> Option<TensorReferenceType>
Get the element tensor reference type (if element is a tensor).
C++ equivalent: TensorReferenceType* elementTensorReferenceType()