Enum vulkano::sync::fence::ExternalFenceHandleType
source · #[non_exhaustive]#[repr(u32)]pub enum ExternalFenceHandleType {
OpaqueFd = 1,
OpaqueWin32 = 2,
OpaqueWin32Kmt = 4,
SyncFd = 8,
}
Expand description
The handle type used to export or import fences to/from an external source.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
OpaqueFd = 1
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
OpaqueWin32 = 2
A Windows NT handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
OpaqueWin32Kmt = 4
A Windows global share handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
SyncFd = 8
A POSIX file descriptor handle to a Linux Sync File or Android Fence object.
This handle type has copy transference.
Implementations§
source§impl ExternalFenceHandleType
impl ExternalFenceHandleType
sourcepub fn has_copy_transference(self) -> bool
pub fn has_copy_transference(self) -> bool
Returns whether the given handle type has copy transference rather than reference transference.
Imports of handles with copy transference must always be temporary. Exports of such handles must only occur if the fence is already signaled, or if there is a fence signal operation pending in a queue.
Trait Implementations§
source§impl Clone for ExternalFenceHandleType
impl Clone for ExternalFenceHandleType
source§fn clone(&self) -> ExternalFenceHandleType
fn clone(&self) -> ExternalFenceHandleType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExternalFenceHandleType
impl Debug for ExternalFenceHandleType
source§impl From<ExternalFenceHandleType> for ExternalFenceHandleTypeFlags
impl From<ExternalFenceHandleType> for ExternalFenceHandleTypeFlags
source§fn from(val: ExternalFenceHandleType) -> Self
fn from(val: ExternalFenceHandleType) -> Self
source§impl From<ExternalFenceHandleType> for ExternalFenceHandleTypes
impl From<ExternalFenceHandleType> for ExternalFenceHandleTypes
source§fn from(val: ExternalFenceHandleType) -> Self
fn from(val: ExternalFenceHandleType) -> Self
source§impl FromIterator<ExternalFenceHandleType> for ExternalFenceHandleTypes
impl FromIterator<ExternalFenceHandleType> for ExternalFenceHandleTypes
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ExternalFenceHandleType>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ExternalFenceHandleType>,
source§impl Hash for ExternalFenceHandleType
impl Hash for ExternalFenceHandleType
source§impl PartialEq for ExternalFenceHandleType
impl PartialEq for ExternalFenceHandleType
source§fn eq(&self, other: &ExternalFenceHandleType) -> bool
fn eq(&self, other: &ExternalFenceHandleType) -> bool
self
and other
values to be equal, and is used
by ==
.