Trait vulkano::buffer::TypedBufferAccess [−][src]
pub unsafe trait TypedBufferAccess: BufferAccess {
type Content: ?Sized;
fn len(&self) -> DeviceSize
where
Self::Content: Content,
{ ... }
}
Expand description
Extension trait for BufferAccess
. Indicates the type of the content of the buffer.
Associated Types
Provided methods
fn len(&self) -> DeviceSize where
Self::Content: Content,
fn len(&self) -> DeviceSize 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.