Struct spirv_layout::StructMember
source · [−]pub struct StructMember {
pub name: Option<String>,
pub type_id: u32,
pub offset: Option<u32>,
pub row_major: bool,
pub stride: u32,
}
Expand description
Describes a single member of a Type::Struct
type
Fields
name: Option<String>
The name of the member variable (if known)
type_id: u32
The type id of the member’s Type
offset: Option<u32>
The offset within the struct of this member (if known)
row_major: bool
For matrix members: whether this matrix is stored in row major order
stride: u32
For matrix members: The stride between rows/columns of the matrix