pub struct ConstantBufferVar {
pub name: String,
pub slot: u8,
pub size: usize,
pub usage: Usage,
pub elements: Vec<ConstVar>,
}Expand description
A constant buffer.
Fields§
§name: StringName of this constant buffer.
slot: u8Slot of the constant buffer.
size: usizeSize (in bytes) of this buffer’s data.
usage: UsageWhat program stage this buffer is used in.
elements: Vec<ConstVar>List of individual elements in this buffer.
Trait Implementations§
Source§impl Clone for ConstantBufferVar
impl Clone for ConstantBufferVar
Source§fn clone(&self) -> ConstantBufferVar
fn clone(&self) -> ConstantBufferVar
Returns a duplicate 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 Debug for ConstantBufferVar
impl Debug for ConstantBufferVar
Source§impl Hash for ConstantBufferVar
impl Hash for ConstantBufferVar
Source§impl PartialEq for ConstantBufferVar
impl PartialEq for ConstantBufferVar
impl Eq for ConstantBufferVar
impl StructuralPartialEq for ConstantBufferVar
Auto Trait Implementations§
impl Freeze for ConstantBufferVar
impl RefUnwindSafe for ConstantBufferVar
impl Send for ConstantBufferVar
impl Sync for ConstantBufferVar
impl Unpin for ConstantBufferVar
impl UnwindSafe for ConstantBufferVar
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