Struct vulkano::sync::semaphore::ExternalSemaphoreHandleTypes
source · 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 none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns 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
§type Item = ExternalSemaphoreHandleType
type Item = ExternalSemaphoreHandleType
§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