pub struct UnsafeBufferCreateInfo {
pub sharing: Sharing<SmallVec<[u32; 4]>>,
pub size: DeviceSize,
pub sparse: Option<SparseLevel>,
pub usage: BufferUsage,
pub _ne: NonExhaustive,
}
Expand description
Parameters to create a new UnsafeBuffer
.
Fields
sharing: Sharing<SmallVec<[u32; 4]>>
Whether the buffer can be shared across multiple queues, or is limited to a single queue.
The default value is Sharing::Exclusive
.
size: DeviceSize
The size in bytes of the buffer.
The default value is 0
, which must be overridden.
sparse: Option<SparseLevel>
Create a buffer with sparsely bound memory.
The default value is None
.
usage: BufferUsage
How the buffer is going to be used.
The default value is BufferUsage::none()
, which must be overridden.
_ne: NonExhaustive
Trait Implementations
sourceimpl Clone for UnsafeBufferCreateInfo
impl Clone for UnsafeBufferCreateInfo
sourcefn clone(&self) -> UnsafeBufferCreateInfo
fn clone(&self) -> UnsafeBufferCreateInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnsafeBufferCreateInfo
impl Debug for UnsafeBufferCreateInfo
Auto Trait Implementations
impl RefUnwindSafe for UnsafeBufferCreateInfo
impl Send for UnsafeBufferCreateInfo
impl Sync for UnsafeBufferCreateInfo
impl Unpin for UnsafeBufferCreateInfo
impl UnwindSafe for UnsafeBufferCreateInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more