pub struct ExternalSemaphoreHandleTypes(/* private fields */);Expand description
A set of ExternalSemaphoreHandleType values.
Implementations§
Source§impl ExternalSemaphoreHandleTypes
impl ExternalSemaphoreHandleTypes
Sourcepub const OPAQUE_FD: Self
pub const OPAQUE_FD: Self
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
Sourcepub const OPAQUE_WIN32: Self
pub const OPAQUE_WIN32: Self
A Windows NT handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
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.
This handle type has reference transference.
Sourcepub const D3D12_FENCE: Self
pub const D3D12_FENCE: Self
A Windows NT handle that refers to a Direct3D 11 or 12 fence.
This handle type has reference transference.
Sourcepub const SYNC_FD: Self
pub const SYNC_FD: Self
A POSIX file descriptor handle to a Linux Sync File or Android Fence object.
This handle type has copy transference.
Sourcepub const ZIRCON_EVENT: Self
pub const ZIRCON_EVENT: Self
A handle to a Zircon event object.
This handle type has reference transference.
The fuchsia_external_semaphore extension must be enabled on the device.
Sourcepub const fn empty() -> Self
pub const fn empty() -> Self
Returns a ExternalSemaphoreHandleTypes 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: ExternalSemaphoreHandleType) -> bool
pub fn contains_enum(self, val: ExternalSemaphoreHandleType) -> bool
Returns whether self contains the flag corresponding to val.
Trait Implementations§
Source§impl BitAndAssign for ExternalSemaphoreHandleTypes
impl BitAndAssign for ExternalSemaphoreHandleTypes
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for ExternalSemaphoreHandleTypes
impl BitOr for ExternalSemaphoreHandleTypes
Source§impl BitOrAssign for ExternalSemaphoreHandleTypes
impl BitOrAssign for ExternalSemaphoreHandleTypes
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXorAssign for ExternalSemaphoreHandleTypes
impl BitXorAssign for ExternalSemaphoreHandleTypes
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for ExternalSemaphoreHandleTypes
impl Clone for ExternalSemaphoreHandleTypes
Source§fn clone(&self) -> ExternalSemaphoreHandleTypes
fn clone(&self) -> ExternalSemaphoreHandleTypes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExternalSemaphoreHandleTypes
impl Debug for ExternalSemaphoreHandleTypes
Source§impl From<ExternalSemaphoreHandleType> for ExternalSemaphoreHandleTypes
impl From<ExternalSemaphoreHandleType> for ExternalSemaphoreHandleTypes
Source§fn from(val: ExternalSemaphoreHandleType) -> Self
fn from(val: ExternalSemaphoreHandleType) -> Self
Source§impl From<ExternalSemaphoreHandleTypeFlags> for ExternalSemaphoreHandleTypes
impl From<ExternalSemaphoreHandleTypeFlags> for ExternalSemaphoreHandleTypes
Source§fn from(val: ExternalSemaphoreHandleTypeFlags) -> Self
fn from(val: ExternalSemaphoreHandleTypeFlags) -> Self
Source§impl From<ExternalSemaphoreHandleTypes> for ExternalSemaphoreHandleTypeFlags
impl From<ExternalSemaphoreHandleTypes> for ExternalSemaphoreHandleTypeFlags
Source§fn from(val: ExternalSemaphoreHandleTypes) -> Self
fn from(val: ExternalSemaphoreHandleTypes) -> Self
Source§impl FromIterator<ExternalSemaphoreHandleType> for ExternalSemaphoreHandleTypes
impl FromIterator<ExternalSemaphoreHandleType> for ExternalSemaphoreHandleTypes
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalSemaphoreHandleType>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalSemaphoreHandleType>,
Source§impl Hash for ExternalSemaphoreHandleTypes
impl Hash for ExternalSemaphoreHandleTypes
Source§impl IntoIterator for ExternalSemaphoreHandleTypes
impl IntoIterator for ExternalSemaphoreHandleTypes
Source§type Item = ExternalSemaphoreHandleType
type Item = ExternalSemaphoreHandleType
Source§type IntoIter = Flatten<IntoIter<Option<<ExternalSemaphoreHandleTypes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ExternalSemaphoreHandleTypes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Source§impl PartialEq for ExternalSemaphoreHandleTypes
impl PartialEq for ExternalSemaphoreHandleTypes
Source§fn eq(&self, other: &ExternalSemaphoreHandleTypes) -> bool
fn eq(&self, other: &ExternalSemaphoreHandleTypes) -> bool
self and other values to be equal, and is used by ==.Source§impl Sub for ExternalSemaphoreHandleTypes
impl Sub for ExternalSemaphoreHandleTypes
Source§impl SubAssign for ExternalSemaphoreHandleTypes
impl SubAssign for ExternalSemaphoreHandleTypes
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read more