pub struct StructAnnotation {
pub size: u32,
pub fields: Vec<FieldAnnotation>,
}Expand description
A struct type’s annotation in dx.typeAnnotations: its size in a constant buffer and its fields.
Fields§
§size: u32The struct’s size in bytes as a constant buffer lays it out (the annotation’s first operand).
fields: Vec<FieldAnnotation>The annotation of each field, in the struct’s order.
Trait Implementations§
Source§impl Clone for StructAnnotation
impl Clone for StructAnnotation
Source§impl Debug for StructAnnotation
impl Debug for StructAnnotation
impl Eq for StructAnnotation
Source§impl PartialEq for StructAnnotation
impl PartialEq for StructAnnotation
impl StructuralPartialEq for StructAnnotation
Auto Trait Implementations§
impl Forget for StructAnnotation
impl Freeze for StructAnnotation
impl RefUnwindSafe for StructAnnotation
impl Send for StructAnnotation
impl Sync for StructAnnotation
impl Unpin for StructAnnotation
impl UnsafeUnpin for StructAnnotation
impl UnwindSafe for StructAnnotation
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