pub enum BufferKind {
Typed(Value),
Structured {
stride: u32,
},
Raw,
}Expand description
How a buffer’s elements are addressed.
Variants§
Typed(Value)
Elements of one value type (a formatted view).
Structured
Elements of this many bytes.
Elements of stride bytes each (a D3D structured buffer’s element size).
Raw
Bytes, addressed by offset.
Trait Implementations§
Source§impl Clone for BufferKind
impl Clone for BufferKind
impl Copy for BufferKind
Source§impl Debug for BufferKind
impl Debug for BufferKind
impl Eq for BufferKind
Source§impl Hash for BufferKind
impl Hash for BufferKind
Source§impl Ord for BufferKind
impl Ord for BufferKind
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 BufferKind
impl PartialEq for BufferKind
Source§impl PartialOrd for BufferKind
impl PartialOrd for BufferKind
Source§impl Serialize for BufferKind
impl Serialize for BufferKind
impl StructuralPartialEq for BufferKind
Auto Trait Implementations§
impl Freeze for BufferKind
impl RefUnwindSafe for BufferKind
impl Send for BufferKind
impl Sync for BufferKind
impl Unpin for BufferKind
impl UnsafeUnpin for BufferKind
impl UnwindSafe for BufferKind
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