pub type BufferDescriptor<'a> = BufferDescriptorBase<Option<&'a str>>;
Expand description
Describes a Buffer
.
Aliased Type§
#[repr(C)]pub struct BufferDescriptor<'a> {
pub label: Option<&'a str>,
pub size: u64,
pub usage: BufferUsage,
pub mapped_at_creation: bool,
}
Fields§
§label: Option<&'a str>
Debug label of a buffer. This will show up in graphics debuggers for easy identification.
size: u64
Size of a buffer.
usage: BufferUsage
Usages of a buffer. If the buffer is used in any way that isn’t specified here, the operation will panic.
mapped_at_creation: bool
Allows a buffer to be mapped immediately after they are made. It does not have to be BufferUsage::MAP_READ
or
BufferUsage::MAP_WRITE
, all buffers are allowed to be mapped at creation.