pub enum BufferElementType {
F32,
F16,
U8,
U16,
U32,
I32,
}Expand description
Describes the scalar element type stored in a GPU buffer.
Used to select the correct WGSL type string and to compute byte-level buffer sizes without depending on Rust’s generic type system.
Variants§
F32
32-bit IEEE-754 single-precision float.
F16
16-bit IEEE-754 half-precision float (requires SHADER_F16 feature).
U8
Unsigned 8-bit integer.
U16
Unsigned 16-bit integer.
U32
Unsigned 32-bit integer.
I32
Signed 32-bit integer.
Implementations§
Trait Implementations§
Source§impl Clone for BufferElementType
impl Clone for BufferElementType
Source§fn clone(&self) -> BufferElementType
fn clone(&self) -> BufferElementType
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 BufferElementType
Source§impl Debug for BufferElementType
impl Debug for BufferElementType
impl Eq for BufferElementType
Source§impl PartialEq for BufferElementType
impl PartialEq for BufferElementType
Source§fn eq(&self, other: &BufferElementType) -> bool
fn eq(&self, other: &BufferElementType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BufferElementType
Auto Trait Implementations§
impl Freeze for BufferElementType
impl RefUnwindSafe for BufferElementType
impl Send for BufferElementType
impl Sync for BufferElementType
impl Unpin for BufferElementType
impl UnsafeUnpin for BufferElementType
impl UnwindSafe for BufferElementType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.