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§fn clone(&self) -> BufferLayout
fn clone(&self) -> BufferLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
Source§fn cmp(&self, other: &BufferLayout) -> Ordering
fn cmp(&self, other: &BufferLayout) -> Ordering
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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BufferLayout
Auto Trait Implementations§
impl Forget for BufferLayout
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