pub struct Field {
pub name: String,
pub offset: u32,
pub kind: i64,
pub shape: Shape,
pub array_size: u32,
}Expand description
A constant-buffer field: its name, byte offset in the buffer, element type (Unity’s ShaderParamType: 0 float, 1
int, 2 bool, 3 half, 4 short, 5 uint), shape (a vector of columns lanes, or a matrix of rows rows) and array
size (0: not an array).
Fields§
§name: StringThe field’s name.
offset: u32The field’s byte offset in its buffer.
kind: i64Unity’s ShaderParamType of the element.
shape: ShapeA vector or a matrix.
array_size: u32The array length; 0 when the field is not an array.
Trait Implementations§
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.