Struct vulkano::buffer::immutable::ImmutableBuffer [] [src]

pub struct ImmutableBuffer<T: ?Sized, A = Arc<StdMemoryPool>> where
    A: MemoryPool
{ /* fields omitted */ }

Buffer that is written once then read for as long as it is alive.

Methods

impl<T> ImmutableBuffer<T>
[src]

Builds a new buffer. Only allowed for sized data.

impl<T> ImmutableBuffer<[T]>
[src]

Builds a new buffer. Can be used for arrays.

impl<T: ?Sized> ImmutableBuffer<T>
[src]

Builds a new buffer without checking the size.

Safety

You must ensure that the size that you pass is correct for T.

impl<T: ?Sized, A> ImmutableBuffer<T, A> where
    A: MemoryPool
[src]

Returns the device used to create this buffer.

Returns the queue families this buffer can be used on.

Trait Implementations

impl<T: ?Sized, A> Buffer for ImmutableBuffer<T, A> where
    T: 'static + Send + Sync,
    A: MemoryPool
[src]

Returns the inner buffer.

Given a range, returns the list of blocks which each range is contained in. Read more

Returns the range of bytes of the buffer slice used by a block.

Returns whether accessing a range of this buffer should signal a fence.

Called when a command buffer that uses this buffer is being built. Read more

impl<T: ?Sized, A> TypedBuffer for ImmutableBuffer<T, A> where
    T: 'static + Send + Sync,
    A: MemoryPool
[src]