Struct vulkano::memory::ExternalMemoryHandleTypes
source · [−]pub struct ExternalMemoryHandleTypes {
pub opaque_fd: bool,
pub opaque_win32: bool,
pub opaque_win32_kmt: bool,
pub d3d11_texture: bool,
pub d3d11_texture_kmt: bool,
pub d3d12_heap: bool,
pub d3d12_resource: bool,
pub dma_buf: bool,
pub android_hardware_buffer: bool,
pub host_allocation: bool,
pub host_mapped_foreign_memory: bool,
}
Expand description
A mask of multiple handle types.
Fields
opaque_fd: bool
opaque_win32: bool
opaque_win32_kmt: bool
d3d11_texture: bool
d3d11_texture_kmt: bool
d3d12_heap: bool
d3d12_resource: bool
dma_buf: bool
android_hardware_buffer: bool
host_allocation: bool
host_mapped_foreign_memory: bool
Implementations
Builds a ExternalMemoryHandleTypes
with all values set to false. Useful as a default value.
Example
use vulkano::memory::ExternalMemoryHandleTypes as ExternalMemoryHandleTypes;
let _handle_type = ExternalMemoryHandleTypes {
opaque_fd: true,
.. ExternalMemoryHandleTypes::none()
};
Builds an ExternalMemoryHandleTypes
for a posix file descriptor.
Example
use vulkano::memory::ExternalMemoryHandleTypes as ExternalMemoryHandleTypes;
let _handle_type = ExternalMemoryHandleTypes::posix();
Returns an iterator of ExternalMemoryHandleType
enum values, representing the fields that
are set in self
.
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
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 ExternalMemoryHandleTypes
impl Send for ExternalMemoryHandleTypes
impl Sync for ExternalMemoryHandleTypes
impl Unpin for ExternalMemoryHandleTypes
impl UnwindSafe for ExternalMemoryHandleTypes
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.