pub struct RdefType {
pub word: usize,
pub class: u16,
pub scalar: u16,
pub rows: u16,
pub columns: u16,
pub elements: u16,
pub members: Vec<RdefMember>,
}Expand description
A variable’s type record (D3D11_SHADER_TYPE_DESC) as stored, and its members’ types.
Fields§
§word: usizeWhere the record starts, in words of the part.
class: u16D3D_SHADER_VARIABLE_CLASS: 0 scalar, 1 vector, 2 row-major matrix, 3 column-major matrix, 4 object, 5 struct.
scalar: u16D3D_SHADER_VARIABLE_TYPE.
rows: u16The matrix’s rows (1 for a scalar or vector).
columns: u16The vector’s or matrix’s columns.
elements: u16The array length; 0 where it isn’t an array.
members: Vec<RdefMember>The struct’s members, in order.
Trait Implementations§
impl Eq for RdefType
impl StructuralPartialEq for RdefType
Auto Trait Implementations§
impl Freeze for RdefType
impl RefUnwindSafe for RdefType
impl Send for RdefType
impl Sync for RdefType
impl Unpin for RdefType
impl UnsafeUnpin for RdefType
impl UnwindSafe for RdefType
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