pub struct Std140CompatTypeInfo {
type_id: Word,
member_indices: Vec<u32>,
}Expand description
Information about a type for which we have declared a std140 layout
compatible variant, because the type is used in a uniform but does not
adhere to std140 requirements. The uniform will be declared using the
type type_id, and the result of any Load will be immediately converted
to the base type. This is used for matrices with 2 rows, as well as any
arrays or structs containing such matrices.
Fields§
§type_id: WordID of the std140 compatible type declaration.
member_indices: Vec<u32>For structs, a mapping of Naga IR struct member indices to the indices used in the generated SPIR-V. For non-struct types this will be empty.
Auto Trait Implementations§
impl Freeze for Std140CompatTypeInfo
impl RefUnwindSafe for Std140CompatTypeInfo
impl Send for Std140CompatTypeInfo
impl Sync for Std140CompatTypeInfo
impl Unpin for Std140CompatTypeInfo
impl UnwindSafe for Std140CompatTypeInfo
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