Struct vulkano::sync::ExternalSemaphoreHandleType [−][src]
pub struct ExternalSemaphoreHandleType {
pub opaque_fd: bool,
pub opaque_win32: bool,
pub opaque_win32_kmt: bool,
pub d3d12_fence: bool,
pub sync_fd: bool,
}
Expand description
Describes the handle type used for Vulkan external semaphore APIs. This is not just a suggestion. Check out VkExternalSemaphoreHandleTypeFlagBits in the Vulkan spec.
Fields
opaque_fd: bool
opaque_win32: bool
opaque_win32_kmt: bool
d3d12_fence: bool
sync_fd: bool
Implementations
Builds a ExternalSemaphoreHandleType
with all values set to false. Useful as a default value.
Example
use vulkano::sync::ExternalSemaphoreHandleType as ExternalSemaphoreHandleType;
let _handle_type = ExternalSemaphoreHandleType {
opaque_fd: true,
.. ExternalSemaphoreHandleType::none()
};
Builds an ExternalSemaphoreHandleType
for a posix file descriptor.
Example
use vulkano::sync::ExternalSemaphoreHandleType as ExternalSemaphoreHandleType;
let _handle_type = ExternalSemaphoreHandleType::posix();
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ExternalSemaphoreHandleType
impl Send for ExternalSemaphoreHandleType
impl Sync for ExternalSemaphoreHandleType
impl Unpin for ExternalSemaphoreHandleType
impl UnwindSafe for ExternalSemaphoreHandleType
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.