Trait vulkano::buffer::TypedBufferAccess
source · [−]pub unsafe trait TypedBufferAccess: BufferAccess {
type Content: BufferContents + ?Sized;
fn len(&self) -> DeviceSize { ... }
}
Expand description
Extension trait for BufferAccess
. Indicates the type of the content of the buffer.
Required Associated Types
sourcetype Content: BufferContents + ?Sized
type Content: BufferContents + ?Sized
The type of the content.
Provided Methods
sourcefn len(&self) -> DeviceSize
fn len(&self) -> DeviceSize
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.