[][src]Trait vulkano::buffer::TypedBufferAccess

pub unsafe trait TypedBufferAccess: BufferAccess {
    type Content: ?Sized;
    fn len(&self) -> usize
    where
        Self::Content: Content
, { ... } }

Extension trait for BufferAccess. Indicates the type of the content of the buffer.

Associated Types

type Content: ?Sized

The type of the content.

Loading content...

Provided methods

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

Returns the length of the buffer in number of elements.

This method can only be called for buffers whose type is known to be an array.

Loading content...

Implementors

impl<T> TypedBufferAccess for T where
    T: SafeDeref,
    T::Target: TypedBufferAccess
[src]

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

type Content = [T]

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

type Content = T

impl<T: ?Sized, A> TypedBufferAccess for CpuAccessibleBuffer<T, A> where
    T: 'static + Send + Sync
[src]

type Content = T

impl<T: ?Sized, A> TypedBufferAccess for DeviceLocalBuffer<T, A> where
    T: 'static + Send + Sync
[src]

type Content = T

impl<T: ?Sized, A> TypedBufferAccess for ImmutableBuffer<T, A>[src]

type Content = T

impl<T: ?Sized, A> TypedBufferAccess for ImmutableBufferInitialization<T, A>[src]

type Content = T

impl<T: ?Sized, B> TypedBufferAccess for BufferSlice<T, B> where
    B: BufferAccess
[src]

type Content = T

Loading content...