pub struct ConstantBuffer {
pub name: String,
pub slot: Option<u32>,
pub size: u32,
pub fields: Vec<Field>,
pub structs: Vec<StructField>,
}Expand description
A constant buffer: its name, the bind slot it is bound to (b<n>; None when no binding names it), its size in
bytes, its fields and its struct fields (by offset).
Fields§
§name: StringThe buffer’s name.
slot: Option<u32>The bind slot (b<n>), when a binding names the buffer.
size: u32The buffer’s size in bytes.
fields: Vec<Field>The buffer’s fields.
structs: Vec<StructField>The buffer’s struct fields, by offset.
Trait Implementations§
Source§impl Clone for ConstantBuffer
impl Clone for ConstantBuffer
Source§impl Debug for ConstantBuffer
impl Debug for ConstantBuffer
impl Eq for ConstantBuffer
Source§impl PartialEq for ConstantBuffer
impl PartialEq for ConstantBuffer
Source§impl Serialize for ConstantBuffer
impl Serialize for ConstantBuffer
impl StructuralPartialEq for ConstantBuffer
Auto Trait Implementations§
impl Freeze for ConstantBuffer
impl RefUnwindSafe for ConstantBuffer
impl Send for ConstantBuffer
impl Sync for ConstantBuffer
impl Unpin for ConstantBuffer
impl UnsafeUnpin for ConstantBuffer
impl UnwindSafe for ConstantBuffer
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.