pub struct FieldAnnotation {
pub name: String,
pub offset: u32,
pub component: Option<u32>,
pub matrix: Option<(u32, u32, u32)>,
}Expand description
One field of a struct type, as its annotation in dx.typeAnnotations states it.
Fields§
§name: StringThe field’s name.
offset: u32Byte offset in the constant buffer.
component: Option<u32>Its DxilComponentType: LLVM integers carry no signedness, the annotation does.
matrix: Option<(u32, u32, u32)>A matrix field’s rows, columns and orientation (1 row-major, 2 column-major): LLVM lowers a matrix to an array of its lines, so only the annotation says it is one.
Trait Implementations§
Source§impl Clone for FieldAnnotation
impl Clone for FieldAnnotation
Source§impl Debug for FieldAnnotation
impl Debug for FieldAnnotation
impl Eq for FieldAnnotation
Source§impl PartialEq for FieldAnnotation
impl PartialEq for FieldAnnotation
impl StructuralPartialEq for FieldAnnotation
Auto Trait Implementations§
impl Forget for FieldAnnotation
impl Freeze for FieldAnnotation
impl RefUnwindSafe for FieldAnnotation
impl Send for FieldAnnotation
impl Sync for FieldAnnotation
impl Unpin for FieldAnnotation
impl UnsafeUnpin for FieldAnnotation
impl UnwindSafe for FieldAnnotation
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