pub struct Type {
pub class: u16,
pub kind: u16,
pub rows: u16,
pub columns: u16,
pub elements: u16,
pub members: Vec<TypeMember>,
}Expand description
A CTAB type. Numeric class/type values are D3DXPARAMETER_CLASS/TYPE, kept alongside their dimensions.
Fields§
§class: u16D3DXPARAMETER_CLASS as stored (u16 at offset 0 of the type record): scalar, vector, row or column matrix, object, struct.
kind: u16D3DXPARAMETER_TYPE as stored (u16 at offset 2): bool, int, float, sampler and so on.
rows: u16Rows (u16 at offset 4).
columns: u16Columns (u16 at offset 6).
elements: u16Array length (u16 at offset 8); 1 for a type that is not an array.
members: Vec<TypeMember>Members of a struct type in the order stored (the u16 count at offset 10 says how many); empty for any other class.
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Forget for Type
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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