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
Source§fn clone(&self) -> BufferKind
fn clone(&self) -> BufferKind
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 moreimpl 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
Source§fn cmp(&self, other: &BufferKind) -> Ordering
fn cmp(&self, other: &BufferKind) -> 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 BufferKind
impl PartialEq for BufferKind
Source§impl PartialOrd for BufferKind
impl PartialOrd for BufferKind
Source§impl Serialize for BufferKind
impl Serialize for BufferKind
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 BufferKind
Auto Trait Implementations§
impl Forget for BufferKind
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