Enum vulkano::sync::ExternalFenceHandleType
source · [−]#[non_exhaustive]
#[repr(u32)]
pub enum ExternalFenceHandleType {
OpaqueFd,
OpaqueWin32,
OpaqueWin32Kmt,
SyncFd,
}
Expand description
The handle type used for Vulkan external fence APIs.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
OpaqueFd
A POSIX file descriptor handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
OpaqueWin32
A Windows NT handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
OpaqueWin32Kmt
A Windows global share handle that is only usable with Vulkan and compatible APIs.
This handle type has reference transference.
SyncFd
A POSIX file descriptor handle to a Linux Sync File or Android Fence object.
This handle type has copy transference.
Implementations
sourceimpl 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
sourceimpl Clone for ExternalFenceHandleType
impl Clone for ExternalFenceHandleType
sourcefn clone(&self) -> ExternalFenceHandleType
fn clone(&self) -> ExternalFenceHandleType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more