pub struct BufferDescriptor<'a, LT: Lifetime> {
pub name: &'a str,
pub usage: BufferUsageFlags,
pub memory_location: MemoryLocation,
pub lifetime: LT,
pub sharing_mode: SharingMode,
pub queues: QueueFlags,
pub size: DeviceSize,
pub flags: Option<BufferCreateFlags>,
}
Expand description
Describes how an image should be configured.
Fields§
§name: &'a str
Name used for debugging.
usage: BufferUsageFlags
What is the buffer used for.
memory_location: MemoryLocation
Where should the buffer reside.
lifetime: LT
The lifetime of an allocation. Used to pool allocations and reduce fragmentation.
sharing_mode: SharingMode
The sharing mode between queues.
queues: QueueFlags
Which queues should have access to it.
size: DeviceSize
The size of the buffer.
flags: Option<BufferCreateFlags>
Additional flags.
Trait Implementations§
Source§impl<'a, LT: Clone + Lifetime> Clone for BufferDescriptor<'a, LT>
impl<'a, LT: Clone + Lifetime> Clone for BufferDescriptor<'a, LT>
Source§fn clone(&self) -> BufferDescriptor<'a, LT>
fn clone(&self) -> BufferDescriptor<'a, LT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, LT> Freeze for BufferDescriptor<'a, LT>where
LT: Freeze,
impl<'a, LT> RefUnwindSafe for BufferDescriptor<'a, LT>where
LT: RefUnwindSafe,
impl<'a, LT> Send for BufferDescriptor<'a, LT>where
LT: Send,
impl<'a, LT> Sync for BufferDescriptor<'a, LT>where
LT: Sync,
impl<'a, LT> Unpin for BufferDescriptor<'a, LT>where
LT: Unpin,
impl<'a, LT> UnwindSafe for BufferDescriptor<'a, LT>where
LT: UnwindSafe,
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