[][src]Struct vulkano::buffer::cpu_pool::CpuBufferPoolSubbuffer

pub struct CpuBufferPoolSubbuffer<T, A> where
    A: MemoryPool
{ /* fields omitted */ }

A subbuffer allocated from a CpuBufferPool.

When this object is destroyed, the subbuffer is automatically reclaimed by the pool.

Trait Implementations

impl<T, A> BufferAccess for CpuBufferPoolSubbuffer<T, A> where
    A: MemoryPool
[src]

fn as_buffer_slice(&self) -> BufferSlice<Self::Content, &Self> where
    Self: Sized + TypedBufferAccess
[src]

Builds a BufferSlice object holding the buffer by reference.

fn slice<T>(&self, range: Range<usize>) -> Option<BufferSlice<[T], &Self>> where
    Self: Sized + TypedBufferAccess<Content = [T]>, 
[src]

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
[src]

Builds a BufferSlice object holding the buffer by value.

fn index<T>(&self, index: usize) -> Option<BufferSlice<[T], &Self>> where
    Self: Sized + TypedBufferAccess<Content = [T]>, 
[src]

Builds a BufferSlice object holding part of the buffer by reference. Read more

impl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A> where
    A: MemoryPool
[src]

type Content = T

The type of the content.

fn len(&self) -> usize where
    Self::Content: Content
[src]

Returns the length of the buffer in number of elements. Read more

impl<T, A> DeviceOwned for CpuBufferPoolSubbuffer<T, A> where
    A: MemoryPool
[src]

impl<T, A> Clone for CpuBufferPoolSubbuffer<T, A> where
    A: MemoryPool
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T, A> Send for CpuBufferPoolSubbuffer<T, A> where
    T: Send,
    <A as MemoryPool>::Alloc: Send + Sync

impl<T, A> Unpin for CpuBufferPoolSubbuffer<T, A>

impl<T, A> Sync for CpuBufferPoolSubbuffer<T, A> where
    T: Sync,
    <A as MemoryPool>::Alloc: Send + Sync

impl<T, A> UnwindSafe for CpuBufferPoolSubbuffer<T, A> where
    T: UnwindSafe,
    <A as MemoryPool>::Alloc: RefUnwindSafe

impl<T, A> RefUnwindSafe for CpuBufferPoolSubbuffer<T, A> where
    T: RefUnwindSafe,
    <A as MemoryPool>::Alloc: RefUnwindSafe

Blanket Implementations

impl<T> DeviceOwned for T where
    T: Deref,
    <T as Deref>::Target: DeviceOwned
[src]

impl<T> Content for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]