pub struct ScalarBinding {
pub ty: StorageType,
pub length: usize,
pub data: Vec<u64>,
}Expand description
Binding of a set of scalars of the same type to execute a kernel.
Fields§
§ty: StorageTypeType of the scalars
length: usizeUnpadded 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§
Source§impl Clone for ScalarBinding
impl Clone for ScalarBinding
Source§fn clone(&self) -> ScalarBinding
fn clone(&self) -> ScalarBinding
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 moreAuto 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