pub struct DeviceBuffer<T> { /* private fields */ }Expand description
Typed buffer allocated on a specific device.
Implementations§
Source§impl<T> DeviceBuffer<T>
impl<T> DeviceBuffer<T>
Sourcepub fn new(len: usize, device: &dyn Device) -> SpatialResult<Self>
pub fn new(len: usize, device: &dyn Device) -> SpatialResult<Self>
Creates a new device buffer placeholder.
Actual allocation is implemented in later GPU milestones.
Sourcepub const fn device_kind(&self) -> DeviceKind
pub const fn device_kind(&self) -> DeviceKind
Returns the device kind backing this buffer.
Trait Implementations§
Source§impl<T: Clone> Clone for DeviceBuffer<T>
impl<T: Clone> Clone for DeviceBuffer<T>
Source§fn clone(&self) -> DeviceBuffer<T>
fn clone(&self) -> DeviceBuffer<T>
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<T: Debug> Debug for DeviceBuffer<T>
impl<T: Debug> Debug for DeviceBuffer<T>
Source§impl<T: PartialEq> PartialEq for DeviceBuffer<T>
impl<T: PartialEq> PartialEq for DeviceBuffer<T>
impl<T: Eq> Eq for DeviceBuffer<T>
impl<T> StructuralPartialEq for DeviceBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for DeviceBuffer<T>
impl<T> RefUnwindSafe for DeviceBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for DeviceBuffer<T>where
T: Send,
impl<T> Sync for DeviceBuffer<T>where
T: Sync,
impl<T> Unpin for DeviceBuffer<T>where
T: Unpin,
impl<T> UnsafeUnpin for DeviceBuffer<T>
impl<T> UnwindSafe for DeviceBuffer<T>where
T: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more