pub struct CpuBufferPoolSubbuffer<T, A>where
[T]: BufferContents,
A: MemoryPool,{ /* private fields */ }
Expand description
A subbuffer allocated from a CpuBufferPool
.
When this object is destroyed, the subbuffer is automatically reclaimed by the pool.
Trait Implementations
sourceimpl<T, A> BufferAccess for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
impl<T, A> BufferAccess for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
sourcefn inner(&self) -> BufferInner<'_>
fn inner(&self) -> BufferInner<'_>
Returns the inner information about this buffer.
sourcefn size(&self) -> DeviceSize
fn size(&self) -> DeviceSize
Returns the size of the buffer in bytes.
sourcefn usage(&self) -> &BufferUsage
fn usage(&self) -> &BufferUsage
Returns the usage the buffer was created with.
sourcefn raw_device_address(&self) -> Result<NonZeroU64, BufferDeviceAddressError>
fn raw_device_address(&self) -> Result<NonZeroU64, BufferDeviceAddressError>
Gets the device address for this buffer. Read more
sourceimpl<T, A> Clone for CpuBufferPoolSubbuffer<T, A>where
[T]: BufferContents,
A: MemoryPool,
impl<T, A> Clone for CpuBufferPoolSubbuffer<T, A>where
[T]: BufferContents,
A: MemoryPool,
sourcefn clone(&self) -> CpuBufferPoolSubbuffer<T, A>
fn clone(&self) -> CpuBufferPoolSubbuffer<T, A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T, A> DeviceOwned for CpuBufferPoolSubbuffer<T, A>where
[T]: BufferContents,
A: MemoryPool,
impl<T, A> DeviceOwned for CpuBufferPoolSubbuffer<T, A>where
[T]: BufferContents,
A: MemoryPool,
sourceimpl<T, A> Hash for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
impl<T, A> Hash for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
sourceimpl<T, A> PartialEq<CpuBufferPoolSubbuffer<T, A>> for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
impl<T, A> PartialEq<CpuBufferPoolSubbuffer<T, A>> for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
sourceimpl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A>where
T: BufferContents,
[T]: BufferContents,
A: MemoryPool,
impl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A>where
T: BufferContents,
[T]: BufferContents,
A: MemoryPool,
type Content = T
type Content = T
The type of the content.
sourcefn len(&self) -> DeviceSize
fn len(&self) -> DeviceSize
Returns the length of the buffer in number of elements. Read more
impl<T, A> Eq for CpuBufferPoolSubbuffer<T, A>where
T: Send + Sync,
[T]: BufferContents,
A: MemoryPool,
Auto Trait Implementations
impl<T, A> !RefUnwindSafe for CpuBufferPoolSubbuffer<T, A>
impl<T, A> Send for CpuBufferPoolSubbuffer<T, A>where
T: Send,
impl<T, A> Sync for CpuBufferPoolSubbuffer<T, A>where
T: Sync,
impl<T, A> Unpin for CpuBufferPoolSubbuffer<T, A>
impl<T, A> !UnwindSafe for CpuBufferPoolSubbuffer<T, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more