Struct spirv_cross2::reflect::StructMember
source · pub struct StructMember<'a> {
pub id: Handle<TypeId>,
pub struct_type: Handle<TypeId>,
pub name: Option<ContextStr<'a>>,
pub index: usize,
pub offset: u32,
pub size: usize,
pub matrix_stride: Option<u32>,
pub array_stride: Option<u32>,
}Expand description
Type definition for a struct member.
Fields§
§id: Handle<TypeId>The type ID of the struct member.
struct_type: Handle<TypeId>The type ID of the parent struct.
name: Option<ContextStr<'a>>The name of the struct member.
index: usizeThe index of the member inside the struct.
offset: u32The offset in bytes from the beginning of the struct.
size: usizeThe declared size of the struct member.
matrix_stride: Option<u32>The matrix stride of the member, if any.
Matrix strides are only decorated on struct members.
array_stride: Option<u32>The array stride of the member, if any.
Array strides are only decorated on struct members.
Trait Implementations§
source§impl<'a> Clone for StructMember<'a>
impl<'a> Clone for StructMember<'a>
source§fn clone(&self) -> StructMember<'a>
fn clone(&self) -> StructMember<'a>
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<'a> Debug for StructMember<'a>
impl<'a> Debug for StructMember<'a>
source§impl<'a> PartialEq for StructMember<'a>
impl<'a> PartialEq for StructMember<'a>
impl<'a> Eq for StructMember<'a>
impl<'a> StructuralPartialEq for StructMember<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructMember<'a>
impl<'a> RefUnwindSafe for StructMember<'a>
impl<'a> !Send for StructMember<'a>
impl<'a> !Sync for StructMember<'a>
impl<'a> Unpin for StructMember<'a>
impl<'a> UnwindSafe for StructMember<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)