Struct vulkano::buffer::cpu_pool::CpuBufferPoolSubbuffer [−][src]
pub struct CpuBufferPoolSubbuffer<T, A> where
A: MemoryPool, { /* fields omitted */ }
Expand description
A subbuffer allocated from a CpuBufferPool
.
When this object is destroyed, the subbuffer is automatically reclaimed by the pool.
Trait Implementations
Returns the inner information about this buffer.
Returns the size of the buffer in bytes.
Returns a key that uniquely identifies the buffer. Two buffers or images that potentially overlap in memory must return the same key. Read more
Locks the resource for usage on the GPU. Returns an error if the lock can’t be acquired. Read more
Locks the resource for usage on the GPU. Supposes that the resource is already locked, and simply increases the lock by one. Read more
Unlocks the resource previously acquired with try_gpu_lock
or increase_gpu_lock
. Read more
fn into_buffer_slice(self: &Arc<Self>) -> Arc<BufferSlice<Self::Content, Self>> where
Self: Sized + TypedBufferAccess,
fn into_buffer_slice(self: &Arc<Self>) -> Arc<BufferSlice<Self::Content, Self>> where
Self: Sized + TypedBufferAccess,
Returns a BufferSlice
covering the whole buffer.
fn slice<T>(
self: &Arc<Self>,
range: Range<DeviceSize>
) -> Option<Arc<BufferSlice<[T], Self>>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
fn slice<T>(
self: &Arc<Self>,
range: Range<DeviceSize>
) -> Option<Arc<BufferSlice<[T], Self>>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
Returns a BufferSlice
for a subrange of elements in the buffer. Returns None
if
out of range. Read more
fn index<T>(
self: &Arc<Self>,
index: DeviceSize
) -> Option<Arc<BufferSlice<T, Self>>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
fn index<T>(
self: &Arc<Self>,
index: DeviceSize
) -> Option<Arc<BufferSlice<T, Self>>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
Returns a BufferSlice
for a single element in the buffer. Returns None
if out of range. Read more
Gets the device address for this buffer. Read more
impl<T, A> PartialEq<CpuBufferPoolSubbuffer<T, A>> for CpuBufferPoolSubbuffer<T, A> where
T: Send + Sync,
A: MemoryPool,
impl<T, A> PartialEq<CpuBufferPoolSubbuffer<T, A>> for CpuBufferPoolSubbuffer<T, A> where
T: Send + Sync,
A: MemoryPool,
impl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A> where
T: Send + Sync,
A: MemoryPool,
impl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A> where
T: Send + Sync,
A: MemoryPool,
Auto Trait Implementations
impl<T, A> RefUnwindSafe for CpuBufferPoolSubbuffer<T, A> where
T: RefUnwindSafe,
<A as MemoryPool>::Alloc: RefUnwindSafe,
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> where
T: UnwindSafe,
<A as MemoryPool>::Alloc: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.