Struct vulkano::memory::MemoryAllocateFlags
source · pub struct MemoryAllocateFlags(/* private fields */);
Expand description
Flags specifying additional properties of a device memory allocation.
Implementations§
source§impl MemoryAllocateFlags
impl MemoryAllocateFlags
sourcepub const DEVICE_ADDRESS: Self = _
pub const DEVICE_ADDRESS: Self = _
Specifies that the allocated device memory can be bound to a buffer created with the
SHADER_DEVICE_ADDRESS
usage. This requires that the buffer_device_address
feature
is enabled on the device and the ext_buffer_device_address
extension is not enabled on
the device.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a MemoryAllocateFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for MemoryAllocateFlags
impl BitAnd for MemoryAllocateFlags
source§impl BitAndAssign for MemoryAllocateFlags
impl BitAndAssign for MemoryAllocateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for MemoryAllocateFlags
impl BitOr for MemoryAllocateFlags
source§impl BitOrAssign for MemoryAllocateFlags
impl BitOrAssign for MemoryAllocateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for MemoryAllocateFlags
impl BitXor for MemoryAllocateFlags
source§impl BitXorAssign for MemoryAllocateFlags
impl BitXorAssign for MemoryAllocateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for MemoryAllocateFlags
impl Clone for MemoryAllocateFlags
source§fn clone(&self) -> MemoryAllocateFlags
fn clone(&self) -> MemoryAllocateFlags
Returns a copy 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 moresource§impl Debug for MemoryAllocateFlags
impl Debug for MemoryAllocateFlags
source§impl Default for MemoryAllocateFlags
impl Default for MemoryAllocateFlags
source§impl From<MemoryAllocateFlags> for MemoryAllocateFlags
impl From<MemoryAllocateFlags> for MemoryAllocateFlags
source§fn from(val: MemoryAllocateFlags) -> Self
fn from(val: MemoryAllocateFlags) -> Self
Converts to this type from the input type.
source§impl From<MemoryAllocateFlags> for MemoryAllocateFlags
impl From<MemoryAllocateFlags> for MemoryAllocateFlags
source§fn from(val: MemoryAllocateFlags) -> Self
fn from(val: MemoryAllocateFlags) -> Self
Converts to this type from the input type.
source§impl Hash for MemoryAllocateFlags
impl Hash for MemoryAllocateFlags
source§impl PartialEq for MemoryAllocateFlags
impl PartialEq for MemoryAllocateFlags
source§fn eq(&self, other: &MemoryAllocateFlags) -> bool
fn eq(&self, other: &MemoryAllocateFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for MemoryAllocateFlags
impl Sub for MemoryAllocateFlags
source§impl SubAssign for MemoryAllocateFlags
impl SubAssign for MemoryAllocateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for MemoryAllocateFlags
impl Eq for MemoryAllocateFlags
impl StructuralEq for MemoryAllocateFlags
impl StructuralPartialEq for MemoryAllocateFlags
Auto Trait Implementations§
impl RefUnwindSafe for MemoryAllocateFlags
impl Send for MemoryAllocateFlags
impl Sync for MemoryAllocateFlags
impl Unpin for MemoryAllocateFlags
impl UnwindSafe for MemoryAllocateFlags
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