Struct vulkano::memory::ExternalMemoryHandleTypes
source · pub struct ExternalMemoryHandleTypes(/* private fields */);
Expand description
A set of ExternalMemoryHandleType
values.
Implementations§
source§impl ExternalMemoryHandleTypes
impl ExternalMemoryHandleTypes
sourcepub const OPAQUE_FD: Self = _
pub const OPAQUE_FD: Self = _
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
sourcepub const OPAQUE_WIN32: Self = _
pub const OPAQUE_WIN32: Self = _
A Windows NT handle that is only usable with Vulkan and compatible APIs.
sourcepub const OPAQUE_WIN32_KMT: Self = _
pub const OPAQUE_WIN32_KMT: Self = _
A Windows global share handle that is only usable with Vulkan and compatible APIs.
sourcepub const D3D11_TEXTURE: Self = _
pub const D3D11_TEXTURE: Self = _
A Windows NT handle that refers to a Direct3D 10 or 11 texture resource.
sourcepub const D3D11_TEXTURE_KMT: Self = _
pub const D3D11_TEXTURE_KMT: Self = _
A Windows global share handle that refers to a Direct3D 10 or 11 texture resource.
sourcepub const D3D12_HEAP: Self = _
pub const D3D12_HEAP: Self = _
A Windows NT handle that refers to a Direct3D 12 heap resource.
sourcepub const D3D12_RESOURCE: Self = _
pub const D3D12_RESOURCE: Self = _
A Windows NT handle that refers to a Direct3D 12 committed resource.
sourcepub const ANDROID_HARDWARE_BUFFER: Self = _
pub const ANDROID_HARDWARE_BUFFER: Self = _
A handle for an Android AHardwareBuffer
object.
sourcepub const HOST_ALLOCATION: Self = _
pub const HOST_ALLOCATION: Self = _
A pointer to memory that was allocated by the host.
sourcepub const HOST_MAPPED_FOREIGN_MEMORY: Self = _
pub const HOST_MAPPED_FOREIGN_MEMORY: Self = _
A pointer to a memory mapping on the host that maps non-host memory.
sourcepub const ZIRCON_VMO: Self = _
pub const ZIRCON_VMO: Self = _
A Zircon handle to a virtual memory object.
sourcepub const RDMA_ADDRESS: Self = _
pub const RDMA_ADDRESS: Self = _
A Remote Direct Memory Address handle to an allocation that is accessible by remote devices.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns 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 that are set in self
or other
, but not in both.
sourcepub fn contains_enum(self, val: ExternalMemoryHandleType) -> bool
pub fn contains_enum(self, val: ExternalMemoryHandleType) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for ExternalMemoryHandleTypes
impl BitAnd for ExternalMemoryHandleTypes
source§impl BitAndAssign for ExternalMemoryHandleTypes
impl BitAndAssign for ExternalMemoryHandleTypes
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for ExternalMemoryHandleTypes
impl BitOr for ExternalMemoryHandleTypes
source§impl BitOrAssign for ExternalMemoryHandleTypes
impl BitOrAssign for ExternalMemoryHandleTypes
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for ExternalMemoryHandleTypes
impl BitXor for ExternalMemoryHandleTypes
source§impl BitXorAssign for ExternalMemoryHandleTypes
impl BitXorAssign for ExternalMemoryHandleTypes
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for ExternalMemoryHandleTypes
impl Clone for ExternalMemoryHandleTypes
source§fn clone(&self) -> ExternalMemoryHandleTypes
fn clone(&self) -> ExternalMemoryHandleTypes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalMemoryHandleTypes
impl Debug for ExternalMemoryHandleTypes
source§impl Default for ExternalMemoryHandleTypes
impl Default for ExternalMemoryHandleTypes
source§impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
impl From<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
source§fn from(val: ExternalMemoryHandleType) -> Self
fn from(val: ExternalMemoryHandleType) -> Self
source§impl From<ExternalMemoryHandleTypeFlags> for ExternalMemoryHandleTypes
impl From<ExternalMemoryHandleTypeFlags> for ExternalMemoryHandleTypes
source§fn from(val: ExternalMemoryHandleTypeFlags) -> Self
fn from(val: ExternalMemoryHandleTypeFlags) -> Self
source§impl From<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypeFlags
impl From<ExternalMemoryHandleTypes> for ExternalMemoryHandleTypeFlags
source§fn from(val: ExternalMemoryHandleTypes) -> Self
fn from(val: ExternalMemoryHandleTypes) -> Self
source§impl FromIterator<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
impl FromIterator<ExternalMemoryHandleType> for ExternalMemoryHandleTypes
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalMemoryHandleType>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ExternalMemoryHandleType>,
source§impl Hash for ExternalMemoryHandleTypes
impl Hash for ExternalMemoryHandleTypes
source§impl IntoIterator for ExternalMemoryHandleTypes
impl IntoIterator for ExternalMemoryHandleTypes
§type Item = ExternalMemoryHandleType
type Item = ExternalMemoryHandleType
§type IntoIter = Flatten<IntoIter<Option<<ExternalMemoryHandleTypes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ExternalMemoryHandleTypes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
source§impl PartialEq for ExternalMemoryHandleTypes
impl PartialEq for ExternalMemoryHandleTypes
source§fn eq(&self, other: &ExternalMemoryHandleTypes) -> bool
fn eq(&self, other: &ExternalMemoryHandleTypes) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ExternalMemoryHandleTypes
impl Sub for ExternalMemoryHandleTypes
source§impl SubAssign for ExternalMemoryHandleTypes
impl SubAssign for ExternalMemoryHandleTypes
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more