logo
pub struct ExternalSemaphoreHandleTypes {
    pub opaque_fd: bool,
    pub opaque_win32: bool,
    pub opaque_win32_kmt: bool,
    pub d3d12_fence: bool,
    pub sync_fd: bool,
}
Expand description

A mask of multiple handle types.

Fields

opaque_fd: boolopaque_win32: boolopaque_win32_kmt: boold3d12_fence: boolsync_fd: bool

Implementations

Builds a ExternalSemaphoreHandleTypes with all values set to false. Useful as a default value.

Example
use vulkano::sync::ExternalSemaphoreHandleTypes;

let _handle_type = ExternalSemaphoreHandleTypes {
    opaque_fd: true,
    .. ExternalSemaphoreHandleTypes::none()
};

Builds an ExternalSemaphoreHandleTypes for a posix file descriptor.

Example
use vulkano::sync::ExternalSemaphoreHandleTypes;

let _handle_type = ExternalSemaphoreHandleTypes::posix();

Trait Implementations

The resulting type after applying the | operator.

Performs the | operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.