pub struct ScalarBinding {
pub elem: Elem,
pub length: usize,
pub data: Vec<u64>,
}
Expand description
Binding of a set of scalars of the same type to execute a kernel.
Fields§
§elem: Elem
Type of the scalars
length: usize
Unpadded length of the underlying data
data: Vec<u64>
Type-erased data of the scalars. Padded and represented by u64 to prevent misalignment.
Implementations§
Source§impl ScalarBinding
impl ScalarBinding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScalarBinding
impl RefUnwindSafe for ScalarBinding
impl Send for ScalarBinding
impl Sync for ScalarBinding
impl Unpin for ScalarBinding
impl UnwindSafe for ScalarBinding
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