Struct screen_13::prelude::vk::MemoryPropertyFlags
source · pub struct MemoryPropertyFlags(/* private fields */);
Expand description
Implementations§
source§impl MemoryPropertyFlags
impl MemoryPropertyFlags
pub const fn empty() -> MemoryPropertyFlags
pub const fn from_raw(x: u32) -> MemoryPropertyFlags
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn intersects(self, other: MemoryPropertyFlags) -> bool
sourcepub const fn contains(self, other: MemoryPropertyFlags) -> bool
pub const fn contains(self, other: MemoryPropertyFlags) -> bool
Returns whether other
is a subset of self
source§impl MemoryPropertyFlags
impl MemoryPropertyFlags
sourcepub const DEVICE_LOCAL: MemoryPropertyFlags = _
pub const DEVICE_LOCAL: MemoryPropertyFlags = _
If otherwise stated, then allocate memory on device
sourcepub const HOST_VISIBLE: MemoryPropertyFlags = _
pub const HOST_VISIBLE: MemoryPropertyFlags = _
Memory is mappable by host
sourcepub const HOST_COHERENT: MemoryPropertyFlags = _
pub const HOST_COHERENT: MemoryPropertyFlags = _
Memory will have i/o coherency. If not set, application may need to use vkFlushMappedMemoryRanges and vkInvalidateMappedMemoryRanges to flush/invalidate host cache
sourcepub const HOST_CACHED: MemoryPropertyFlags = _
pub const HOST_CACHED: MemoryPropertyFlags = _
Memory will be cached by the host
sourcepub const LAZILY_ALLOCATED: MemoryPropertyFlags = _
pub const LAZILY_ALLOCATED: MemoryPropertyFlags = _
Memory may be allocated by the driver when it is required
source§impl MemoryPropertyFlags
impl MemoryPropertyFlags
Generated from ‘VK_AMD_device_coherent_memory’
pub const DEVICE_COHERENT_AMD: MemoryPropertyFlags = _
pub const DEVICE_UNCACHED_AMD: MemoryPropertyFlags = _
source§impl MemoryPropertyFlags
impl MemoryPropertyFlags
Generated from ‘VK_NV_external_memory_rdma’
pub const RDMA_CAPABLE_NV: MemoryPropertyFlags = _
source§impl MemoryPropertyFlags
impl MemoryPropertyFlags
Generated from ‘VK_VERSION_1_1’
sourcepub const PROTECTED: MemoryPropertyFlags = _
pub const PROTECTED: MemoryPropertyFlags = _
Memory is protected
Trait Implementations§
source§impl BitAnd for MemoryPropertyFlags
impl BitAnd for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
&
operator.source§fn bitand(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
fn bitand(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the
&
operation. Read moresource§impl BitAndAssign for MemoryPropertyFlags
impl BitAndAssign for MemoryPropertyFlags
source§fn bitand_assign(&mut self, rhs: MemoryPropertyFlags)
fn bitand_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the
&=
operation. Read moresource§impl BitOr for MemoryPropertyFlags
impl BitOr for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
|
operator.source§fn bitor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
fn bitor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the
|
operation. Read moresource§impl BitOrAssign for MemoryPropertyFlags
impl BitOrAssign for MemoryPropertyFlags
source§fn bitor_assign(&mut self, rhs: MemoryPropertyFlags)
fn bitor_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the
|=
operation. Read moresource§impl BitXor for MemoryPropertyFlags
impl BitXor for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
^
operator.source§fn bitxor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
fn bitxor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the
^
operation. Read moresource§impl BitXorAssign for MemoryPropertyFlags
impl BitXorAssign for MemoryPropertyFlags
source§fn bitxor_assign(&mut self, rhs: MemoryPropertyFlags)
fn bitxor_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the
^=
operation. Read moresource§impl Clone for MemoryPropertyFlags
impl Clone for MemoryPropertyFlags
source§fn clone(&self) -> MemoryPropertyFlags
fn clone(&self) -> MemoryPropertyFlags
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 MemoryPropertyFlags
impl Debug for MemoryPropertyFlags
source§impl Default for MemoryPropertyFlags
impl Default for MemoryPropertyFlags
source§fn default() -> MemoryPropertyFlags
fn default() -> MemoryPropertyFlags
Returns the “default value” for a type. Read more
source§impl Hash for MemoryPropertyFlags
impl Hash for MemoryPropertyFlags
source§impl Not for MemoryPropertyFlags
impl Not for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
!
operator.source§fn not(self) -> MemoryPropertyFlags
fn not(self) -> MemoryPropertyFlags
Performs the unary
!
operation. Read moresource§impl Ord for MemoryPropertyFlags
impl Ord for MemoryPropertyFlags
source§fn cmp(&self, other: &MemoryPropertyFlags) -> Ordering
fn cmp(&self, other: &MemoryPropertyFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MemoryPropertyFlags
impl PartialEq for MemoryPropertyFlags
source§fn eq(&self, other: &MemoryPropertyFlags) -> bool
fn eq(&self, other: &MemoryPropertyFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MemoryPropertyFlags
impl PartialOrd for MemoryPropertyFlags
source§fn partial_cmp(&self, other: &MemoryPropertyFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &MemoryPropertyFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MemoryPropertyFlags
impl Eq for MemoryPropertyFlags
impl StructuralPartialEq for MemoryPropertyFlags
Auto Trait Implementations§
impl RefUnwindSafe for MemoryPropertyFlags
impl Send for MemoryPropertyFlags
impl Sync for MemoryPropertyFlags
impl Unpin for MemoryPropertyFlags
impl UnwindSafe for MemoryPropertyFlags
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.