Struct vulkano::memory::ExternalMemoryHandleTypes
source · [−]pub struct ExternalMemoryHandleTypes {Show 14 fields
pub opaque_fd: bool,
pub opaque_win32: bool,
pub opaque_win32_kmt: bool,
pub d3d11_texture: bool,
pub d3d11_texture_kmt: bool,
pub d3d12_heap: bool,
pub d3d12_resource: bool,
pub dma_buf: bool,
pub android_hardware_buffer: bool,
pub host_allocation: bool,
pub host_mapped_foreign_memory: bool,
pub zircon_vmo: bool,
pub rdma_address: bool,
pub _ne: NonExhaustive,
}
Expand description
A mask of multiple handle types.
Fields
opaque_fd: bool
opaque_win32: bool
opaque_win32_kmt: bool
d3d11_texture: bool
d3d11_texture_kmt: bool
d3d12_heap: bool
d3d12_resource: bool
dma_buf: bool
android_hardware_buffer: bool
host_allocation: bool
host_mapped_foreign_memory: bool
zircon_vmo: bool
rdma_address: bool
_ne: NonExhaustive
Implementations
sourceimpl ExternalMemoryHandleTypes
impl ExternalMemoryHandleTypes
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a ExternalMemoryHandleTypes
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 set in self
or other
, but not both.
sourceimpl ExternalMemoryHandleTypes
impl ExternalMemoryHandleTypes
sourcepub fn iter(&self) -> impl Iterator<Item = ExternalMemoryHandleType>
pub fn iter(&self) -> impl Iterator<Item = ExternalMemoryHandleType>
Returns an iterator of ExternalMemoryHandleType
enum values, representing the fields that
are set in self
.
Trait Implementations
sourceimpl BitAnd<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl BitAnd<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl BitAndAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl BitOr<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl BitOrAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl BitXor<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl BitXorAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for ExternalMemoryHandleTypes
impl Clone for ExternalMemoryHandleTypes
sourcefn clone(&self) -> ExternalMemoryHandleTypes
fn clone(&self) -> ExternalMemoryHandleTypes
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 ExternalMemoryHandleTypes
impl Debug for ExternalMemoryHandleTypes
sourceimpl Default for ExternalMemoryHandleTypes
impl Default for ExternalMemoryHandleTypes
sourceimpl From<ExternalMemoryHandleTypeFlags> for ExternalMemoryHandleTypes
impl From<ExternalMemoryHandleTypeFlags> for ExternalMemoryHandleTypes
sourcefn from(val: ExternalMemoryHandleTypeFlags) -> Self
fn from(val: ExternalMemoryHandleTypeFlags) -> Self
Converts to this type from the input type.
sourceimpl From<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypeFlags
impl From<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypeFlags
sourcefn from(val: ExternalMemoryHandleTypes) -> Self
fn from(val: ExternalMemoryHandleTypes) -> Self
Converts to this type from the input type.
sourceimpl Hash for ExternalMemoryHandleTypes
impl Hash for ExternalMemoryHandleTypes
sourceimpl PartialEq<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl PartialEq<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
sourcefn eq(&self, other: &ExternalMemoryHandleTypes) -> bool
fn eq(&self, other: &ExternalMemoryHandleTypes) -> bool
sourceimpl Sub<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl Sub<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
type Output = ExternalMemoryHandleTypes
The resulting type after applying the
-
operator.sourceimpl SubAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
impl SubAssign<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypes
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ExternalMemoryHandleTypes
impl Eq for ExternalMemoryHandleTypes
impl StructuralEq for ExternalMemoryHandleTypes
impl StructuralPartialEq for ExternalMemoryHandleTypes
Auto Trait Implementations
impl RefUnwindSafe for ExternalMemoryHandleTypes
impl Send for ExternalMemoryHandleTypes
impl Sync for ExternalMemoryHandleTypes
impl Unpin for ExternalMemoryHandleTypes
impl UnwindSafe for ExternalMemoryHandleTypes
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