Struct vulkano::sync::ExternalSemaphoreHandleTypes
source · [−]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: bool
opaque_win32: bool
opaque_win32_kmt: bool
d3d12_fence: bool
sync_fd: bool
Implementations
sourceimpl ExternalSemaphoreHandleTypes
impl ExternalSemaphoreHandleTypes
sourcepub fn none() -> ExternalSemaphoreHandleTypes
pub fn none() -> ExternalSemaphoreHandleTypes
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()
};
sourcepub fn posix() -> ExternalSemaphoreHandleTypes
pub fn posix() -> ExternalSemaphoreHandleTypes
Builds an ExternalSemaphoreHandleTypes
for a posix file descriptor.
Example
use vulkano::sync::ExternalSemaphoreHandleTypes;
let _handle_type = ExternalSemaphoreHandleTypes::posix();
Trait Implementations
sourceimpl Clone for ExternalSemaphoreHandleTypes
impl Clone for ExternalSemaphoreHandleTypes
sourcefn clone(&self) -> ExternalSemaphoreHandleTypes
fn clone(&self) -> ExternalSemaphoreHandleTypes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExternalSemaphoreHandleTypes
impl Debug for ExternalSemaphoreHandleTypes
sourceimpl From<ExternalSemaphoreHandleTypeFlags> for ExternalSemaphoreHandleTypes
impl From<ExternalSemaphoreHandleTypeFlags> for ExternalSemaphoreHandleTypes
sourcefn from(val: ExternalSemaphoreHandleTypeFlags) -> Self
fn from(val: ExternalSemaphoreHandleTypeFlags) -> Self
Performs the conversion.
sourceimpl From<ExternalSemaphoreHandleTypes> for ExternalSemaphoreHandleTypeFlags
impl From<ExternalSemaphoreHandleTypes> for ExternalSemaphoreHandleTypeFlags
sourcefn from(val: ExternalSemaphoreHandleTypes) -> Self
fn from(val: ExternalSemaphoreHandleTypes) -> Self
Performs the conversion.
sourceimpl Hash for ExternalSemaphoreHandleTypes
impl Hash for ExternalSemaphoreHandleTypes
sourceimpl PartialEq<ExternalSemaphoreHandleTypes> for ExternalSemaphoreHandleTypes
impl PartialEq<ExternalSemaphoreHandleTypes> for ExternalSemaphoreHandleTypes
sourcefn eq(&self, other: &ExternalSemaphoreHandleTypes) -> bool
fn eq(&self, other: &ExternalSemaphoreHandleTypes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExternalSemaphoreHandleTypes) -> bool
fn ne(&self, other: &ExternalSemaphoreHandleTypes) -> bool
This method tests for !=
.
impl Copy for ExternalSemaphoreHandleTypes
impl Eq for ExternalSemaphoreHandleTypes
impl StructuralEq for ExternalSemaphoreHandleTypes
impl StructuralPartialEq for ExternalSemaphoreHandleTypes
Auto Trait Implementations
impl RefUnwindSafe for ExternalSemaphoreHandleTypes
impl Send for ExternalSemaphoreHandleTypes
impl Sync for ExternalSemaphoreHandleTypes
impl Unpin for ExternalSemaphoreHandleTypes
impl UnwindSafe for ExternalSemaphoreHandleTypes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more