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 as_buffer_slice(&self) -> BufferSlice<Self::Content, &Self> where
Self: Sized + TypedBufferAccess,
fn as_buffer_slice(&self) -> BufferSlice<Self::Content, &Self> where
Self: Sized + TypedBufferAccess,
Builds a BufferSlice
object holding the buffer by reference.
fn slice<T>(&self, range: Range<DeviceSize>) -> Option<BufferSlice<[T], &Self>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
fn slice<T>(&self, range: Range<DeviceSize>) -> Option<BufferSlice<[T], &Self>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
Builds a BufferSlice
object holding part of the buffer by reference. Read more
fn into_buffer_slice(self) -> BufferSlice<Self::Content, Self> where
Self: Sized + TypedBufferAccess,
fn into_buffer_slice(self) -> BufferSlice<Self::Content, Self> where
Self: Sized + TypedBufferAccess,
Builds a BufferSlice
object holding the buffer by value.
fn index<T>(&self, index: DeviceSize) -> Option<BufferSlice<[T], &Self>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
fn index<T>(&self, index: DeviceSize) -> Option<BufferSlice<[T], &Self>> where
Self: Sized + TypedBufferAccess<Content = [T]>,
Builds a BufferSlice
object holding part of the buffer by reference. Read more
Gets the device address for this buffer. Read more
impl<T, A> PartialEq<CpuBufferPoolSubbuffer<T, A>> for CpuBufferPoolSubbuffer<T, A> where
A: MemoryPool,
impl<T, A> PartialEq<CpuBufferPoolSubbuffer<T, A>> for CpuBufferPoolSubbuffer<T, A> where
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,
<A as MemoryPool>::Alloc: Send + Sync,
impl<T, A> Sync for CpuBufferPoolSubbuffer<T, A> where
T: Sync,
<A as MemoryPool>::Alloc: Send + 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.