Trait vulkano::buffer::TypedBufferAccess [−][src]
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
Provided Methods
fn len(&self) -> usize where
Self::Content: Content,
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.
Implementors
impl<T: ?Sized, A> TypedBufferAccess for CpuAccessibleBuffer<T, A> where
T: 'static + Send + Sync, type Content = T;impl<T, A> TypedBufferAccess for CpuBufferPoolChunk<T, A> where
A: MemoryPool, type Content = [T];impl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A> where
A: MemoryPool, type Content = T;impl<T: ?Sized, A> TypedBufferAccess for DeviceLocalBuffer<T, A> where
T: 'static + Send + Sync, type Content = T;impl<T: ?Sized, A> TypedBufferAccess for ImmutableBuffer<T, A> type Content = T;
impl<T: ?Sized, A> TypedBufferAccess for ImmutableBufferInitialization<T, A> type Content = T;
impl<T: ?Sized, B> TypedBufferAccess for BufferSlice<T, B> where
B: BufferAccess, type Content = T;impl<T> TypedBufferAccess for T where
T: SafeDeref,
T::Target: TypedBufferAccess, type Content = <T::Target as TypedBufferAccess>::Content;