pub enum GpuDataType {
U8,
U16,
U32,
I8,
I16,
I32,
F32,
F64Emulated,
}Expand description
Supported GPU data types for conversion operations.
Variants§
U8
8-bit unsigned integer (0-255).
U16
16-bit unsigned integer (0-65535).
U32
32-bit unsigned integer.
I8
8-bit signed integer (-128 to 127).
I16
16-bit signed integer.
I32
32-bit signed integer.
F32
32-bit floating point.
F64Emulated
64-bit floating point (emulated on GPU as two f32).
Implementations§
Source§impl GpuDataType
impl GpuDataType
Sourcepub fn size_bytes(&self) -> usize
pub fn size_bytes(&self) -> usize
Get the size in bytes of this data type.
Trait Implementations§
Source§impl Clone for GpuDataType
impl Clone for GpuDataType
Source§fn clone(&self) -> GpuDataType
fn clone(&self) -> GpuDataType
Returns a duplicate of the value. Read more
1.0.0 · 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 GpuDataType
impl Debug for GpuDataType
Source§impl Hash for GpuDataType
impl Hash for GpuDataType
Source§impl PartialEq for GpuDataType
impl PartialEq for GpuDataType
impl Copy for GpuDataType
impl Eq for GpuDataType
impl StructuralPartialEq for GpuDataType
Auto Trait Implementations§
impl Freeze for GpuDataType
impl RefUnwindSafe for GpuDataType
impl Send for GpuDataType
impl Sync for GpuDataType
impl Unpin for GpuDataType
impl UnsafeUnpin for GpuDataType
impl UnwindSafe for GpuDataType
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
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.