pub struct BufferDescriptor<'a> {
pub label: Label<'a>,
pub size: BufferAddress,
pub usage: BufferUses,
pub memory_flags: MemoryFlags,
}Fields§
§label: Label<'a>§size: BufferAddressThe requested size of the buffer.
wgpu-hal may allocate more bytes than requested, if required by the
platform. The actual allocation size is returned by create_buffer.
Where platforms offer bounds checking, it will operate based on the
allocated size, not the requested size, so other means may be necessary
to prevent access beyond the original requested size. The content of
newly-created buffers is undefined.
usage: BufferUses§memory_flags: MemoryFlagsTrait Implementations§
Source§impl<'a> Clone for BufferDescriptor<'a>
impl<'a> Clone for BufferDescriptor<'a>
Auto Trait Implementations§
impl<'a> Forget for BufferDescriptor<'a>
impl<'a> Freeze for BufferDescriptor<'a>
impl<'a> Move for BufferDescriptor<'a>
impl<'a> RefUnwindSafe for BufferDescriptor<'a>where
InternalBitFlags: RefUnwindSafe,
InternalBitFlags: RefUnwindSafe,
impl<'a> Send for BufferDescriptor<'a>
impl<'a> Sync for BufferDescriptor<'a>
impl<'a> Unpin for BufferDescriptor<'a>
impl<'a> UnsafeUnpin for BufferDescriptor<'a>
impl<'a> UnwindSafe for BufferDescriptor<'a>
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