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

pub struct CpuBufferPoolChunk<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> Clone for CpuBufferPoolChunk<T, A> where
    A: MemoryPool
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Returns the inner information about this buffer.

[src]

Returns the size of the buffer in bytes.

[src]

Returns true if an access to self potentially overlaps the same memory as an access to other. Read more

[src]

Returns true if an access to self potentially overlaps the same memory as an access to other. Read more

[src]

Returns a key that uniquely identifies the buffer. Two buffers or images that potentially overlap in memory must return the same key. Read more

[src]

Locks the resource for usage on the GPU. Returns an error if the lock can't be acquired. Read more

[src]

Locks the resource for usage on the GPU. Supposes that the resource is already locked, and simply increases the lock by one. Read more

[src]

Unlocks the resource previously acquired with try_gpu_lock or increase_gpu_lock. Read more

[src]

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

[src]

Builds a BufferSlice object holding the buffer by reference.

[src]

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

[src]

Builds a BufferSlice object holding the buffer by value.

[src]

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

impl<T, A> Drop for CpuBufferPoolChunk<T, A> where
    A: MemoryPool
[src]

[src]

Executes the destructor for this type. Read more

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

The type of the content.

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

[src]

Returns the device that owns Self.

Auto Trait Implementations

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

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