pub struct BufferDescriptor { /* private fields */ }Expand description
A buffer constructor, naming both the size and the legal uses of a GPU buffer.
Replaces the raw usage: u32 bitmask that create_buffer takes
today, where a caller had to know the bit values and pass 64 | 8 by
hand for a uniform-or-vertex buffer. Combine several uses with |.
Implementations§
Trait Implementations§
Source§impl Clone for BufferDescriptor
impl Clone for BufferDescriptor
Auto Trait Implementations§
impl Freeze for BufferDescriptor
impl RefUnwindSafe for BufferDescriptor
impl Send for BufferDescriptor
impl Sync for BufferDescriptor
impl Unpin for BufferDescriptor
impl UnsafeUnpin for BufferDescriptor
impl UnwindSafe for BufferDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more