Struct spirq::ty::MatrixType
source · pub struct MatrixType {
pub vector_ty: VectorType,
pub nvector: u32,
pub axis_order: Option<MatrixAxisOrder>,
pub stride: Option<usize>,
}
Fields§
§vector_ty: VectorType
Matrix vector type.
nvector: u32
Number of vectors in the matrix.
axis_order: Option<MatrixAxisOrder>
Axis order of the matrix. Valid SPIR-V never gives a None
major.
stride: Option<usize>
Stride between vectors in the matrix. Valid SPIR-V never gives a None
stride.
Trait Implementations§
source§impl Clone for MatrixType
impl Clone for MatrixType
source§fn clone(&self) -> MatrixType
fn clone(&self) -> MatrixType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MatrixType
impl Debug for MatrixType
source§impl Display for MatrixType
impl Display for MatrixType
source§impl Hash for MatrixType
impl Hash for MatrixType
source§impl PartialEq for MatrixType
impl PartialEq for MatrixType
source§fn eq(&self, other: &MatrixType) -> bool
fn eq(&self, other: &MatrixType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SpirvType for MatrixType
impl SpirvType for MatrixType
source§fn min_nbyte(&self) -> Option<usize>
fn min_nbyte(&self) -> Option<usize>
Minimum size of the type in bytes if it can be represented in-memory.
It’s the size of all static members and plus one element if it’s an array.
Same as
wgpu::BindingType::Buffer::min_binding_size
.source§fn nbyte(&self) -> Option<usize>
fn nbyte(&self) -> Option<usize>
Size of the type in bytes if it can be represented in-memory.
source§fn is_sized(&self) -> bool
fn is_sized(&self) -> bool
Returns true if the type is sized. A sized type can be represented
in-memory. Otherwise the type can only be used as a descriptor resource.
source§fn member_offset(&self, _member_index: usize) -> Option<usize>
fn member_offset(&self, _member_index: usize) -> Option<usize>
Returns the offset of the i-th member in bytes if it’s a composite type.
source§fn access_ty(&self) -> Option<AccessType>
fn access_ty(&self) -> Option<AccessType>
Returns how the type can be accessed:
ReadOnly
, WriteOnly
or
ReadWrite
.impl Eq for MatrixType
impl StructuralPartialEq for MatrixType
Auto Trait Implementations§
impl Freeze for MatrixType
impl RefUnwindSafe for MatrixType
impl Send for MatrixType
impl Sync for MatrixType
impl Unpin for MatrixType
impl UnwindSafe for MatrixType
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