pub struct BufferLayout {
pub size: u32,
pub constants: Vec<Constant>,
}Expand description
A constant buffer’s contents.
Fields§
§size: u32Bytes.
constants: Vec<Constant>The constants the source names; their offsets can leave gaps.
Trait Implementations§
Source§impl Clone for BufferLayout
impl Clone for BufferLayout
Source§impl Debug for BufferLayout
impl Debug for BufferLayout
impl Eq for BufferLayout
Source§impl Hash for BufferLayout
impl Hash for BufferLayout
Source§impl Ord for BufferLayout
impl Ord for BufferLayout
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BufferLayout
impl PartialEq for BufferLayout
Source§impl PartialOrd for BufferLayout
impl PartialOrd for BufferLayout
Source§impl Serialize for BufferLayout
impl Serialize for BufferLayout
impl StructuralPartialEq for BufferLayout
Auto Trait Implementations§
impl Freeze for BufferLayout
impl RefUnwindSafe for BufferLayout
impl Send for BufferLayout
impl Sync for BufferLayout
impl Unpin for BufferLayout
impl UnsafeUnpin for BufferLayout
impl UnwindSafe for BufferLayout
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