Struct plate::MemoryPropertyFlags
source · [−]#[repr(transparent)]pub struct MemoryPropertyFlags(_);
Expand description
Implementations
sourceimpl 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
sourceimpl MemoryPropertyFlags
impl MemoryPropertyFlags
sourcepub const DEVICE_LOCAL: MemoryPropertyFlags = Self(1)
pub const DEVICE_LOCAL: MemoryPropertyFlags = Self(1)
If otherwise stated, then allocate memory on device
sourcepub const HOST_VISIBLE: MemoryPropertyFlags = Self(2)
pub const HOST_VISIBLE: MemoryPropertyFlags = Self(2)
Memory is mappable by host
sourcepub const HOST_COHERENT: MemoryPropertyFlags = Self(4)
pub const HOST_COHERENT: MemoryPropertyFlags = Self(4)
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 = Self(8)
pub const HOST_CACHED: MemoryPropertyFlags = Self(8)
Memory will be cached by the host
sourcepub const LAZILY_ALLOCATED: MemoryPropertyFlags = Self(16)
pub const LAZILY_ALLOCATED: MemoryPropertyFlags = Self(16)
Memory may be allocated by the driver when it is required
sourceimpl MemoryPropertyFlags
impl MemoryPropertyFlags
Generated from ‘VK_AMD_device_coherent_memory’
pub const DEVICE_COHERENT_AMD: MemoryPropertyFlags = Self(64)
pub const DEVICE_UNCACHED_AMD: MemoryPropertyFlags = Self(128)
sourceimpl MemoryPropertyFlags
impl MemoryPropertyFlags
Generated from ‘VK_NV_external_memory_rdma’
pub const RDMA_CAPABLE_NV: MemoryPropertyFlags = Self(256)
sourceimpl MemoryPropertyFlags
impl MemoryPropertyFlags
Generated from ‘VK_VERSION_1_1’
sourcepub const PROTECTED: MemoryPropertyFlags = Self(32)
pub const PROTECTED: MemoryPropertyFlags = Self(32)
Memory is protected
Trait Implementations
sourceimpl BitAnd<MemoryPropertyFlags> for MemoryPropertyFlags
impl BitAnd<MemoryPropertyFlags> for MemoryPropertyFlags
type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
&
operator.sourcefn bitand(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
fn bitand(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the
&
operation. Read moresourceimpl BitAndAssign<MemoryPropertyFlags> for MemoryPropertyFlags
impl BitAndAssign<MemoryPropertyFlags> for MemoryPropertyFlags
sourcefn bitand_assign(&mut self, rhs: MemoryPropertyFlags)
fn bitand_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the
&=
operation. Read moresourceimpl BitOr<MemoryPropertyFlags> for MemoryPropertyFlags
impl BitOr<MemoryPropertyFlags> for MemoryPropertyFlags
type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
|
operator.sourcefn bitor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
fn bitor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the
|
operation. Read moresourceimpl BitOrAssign<MemoryPropertyFlags> for MemoryPropertyFlags
impl BitOrAssign<MemoryPropertyFlags> for MemoryPropertyFlags
sourcefn bitor_assign(&mut self, rhs: MemoryPropertyFlags)
fn bitor_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the
|=
operation. Read moresourceimpl BitXor<MemoryPropertyFlags> for MemoryPropertyFlags
impl BitXor<MemoryPropertyFlags> for MemoryPropertyFlags
type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
^
operator.sourcefn bitxor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
fn bitxor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the
^
operation. Read moresourceimpl BitXorAssign<MemoryPropertyFlags> for MemoryPropertyFlags
impl BitXorAssign<MemoryPropertyFlags> for MemoryPropertyFlags
sourcefn bitxor_assign(&mut self, rhs: MemoryPropertyFlags)
fn bitxor_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the
^=
operation. Read moresourceimpl Clone for MemoryPropertyFlags
impl Clone for MemoryPropertyFlags
sourcefn clone(&self) -> MemoryPropertyFlags
fn clone(&self) -> MemoryPropertyFlags
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 moresourceimpl Debug for MemoryPropertyFlags
impl Debug for MemoryPropertyFlags
sourceimpl Default for MemoryPropertyFlags
impl Default for MemoryPropertyFlags
sourcefn default() -> MemoryPropertyFlags
fn default() -> MemoryPropertyFlags
Returns the “default value” for a type. Read more
sourceimpl Hash for MemoryPropertyFlags
impl Hash for MemoryPropertyFlags
sourceimpl Not for MemoryPropertyFlags
impl Not for MemoryPropertyFlags
type Output = MemoryPropertyFlags
type Output = MemoryPropertyFlags
The resulting type after applying the
!
operator.sourcefn not(self) -> MemoryPropertyFlags
fn not(self) -> MemoryPropertyFlags
Performs the unary
!
operation. Read moresourceimpl Ord for MemoryPropertyFlags
impl Ord for MemoryPropertyFlags
sourcefn cmp(&self, other: &MemoryPropertyFlags) -> Ordering
fn cmp(&self, other: &MemoryPropertyFlags) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MemoryPropertyFlags> for MemoryPropertyFlags
impl PartialEq<MemoryPropertyFlags> for MemoryPropertyFlags
sourcefn eq(&self, other: &MemoryPropertyFlags) -> bool
fn eq(&self, other: &MemoryPropertyFlags) -> bool
sourceimpl PartialOrd<MemoryPropertyFlags> for MemoryPropertyFlags
impl PartialOrd<MemoryPropertyFlags> for MemoryPropertyFlags
sourcefn partial_cmp(&self, other: &MemoryPropertyFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &MemoryPropertyFlags) -> Option<Ordering>
1.0.0 · sourcefn 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 StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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