pub enum ArgType {
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
Ptr,
Custom(String),
}Expand description
Describes the data type of a serialized kernel argument.
Covers the common scalar types used in GPU kernels, a generic
pointer type, and a Custom variant for
user-defined or composite types.
Variants§
U8
Unsigned 8-bit integer (u8).
U16
Unsigned 16-bit integer (u16).
U32
Unsigned 32-bit integer (u32).
U64
Unsigned 64-bit integer (u64).
I8
Signed 8-bit integer (i8).
I16
Signed 16-bit integer (i16).
I32
Signed 32-bit integer (i32).
I64
Signed 64-bit integer (i64).
F32
32-bit floating point (f32).
F64
64-bit floating point (f64).
Ptr
A raw pointer (device or host).
Custom(String)
A user-defined or composite type with a descriptive name.
Trait Implementations§
impl Eq for ArgType
impl StructuralPartialEq for ArgType
Auto Trait Implementations§
impl Freeze for ArgType
impl RefUnwindSafe for ArgType
impl Send for ArgType
impl Sync for ArgType
impl Unpin for ArgType
impl UnsafeUnpin for ArgType
impl UnwindSafe for ArgType
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