Struct vulkano::memory::ExternalMemoryHandleType[][src]

pub struct ExternalMemoryHandleType {
    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,
}

Describes the handle type used for Vulkan external memory apis. This is not just a suggestion. Check out vkExternalMemoryHandleTypeFlagBits in the Vulkan spec.

If you specify an handle type that doesnt make sense (for example, using a dma-buf handle type on Windows) when using this handle, a panic will happen.

Fields

opaque_fd: boolopaque_win32: boolopaque_win32_kmt: boold3d11_texture: boold3d11_texture_kmt: boold3d12_heap: boold3d12_resource: booldma_buf: boolandroid_hardware_buffer: boolhost_allocation: boolhost_mapped_foreign_memory: bool

Implementations

impl ExternalMemoryHandleType[src]

pub fn none() -> ExternalMemoryHandleType[src]

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

Example

use vulkano::memory::ExternalMemoryHandleType as ExternalMemoryHandleType;

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

Trait Implementations

impl BitOr<ExternalMemoryHandleType> for ExternalMemoryHandleType[src]

type Output = Self

The resulting type after applying the | operator.

impl Clone for ExternalMemoryHandleType[src]

impl Copy for ExternalMemoryHandleType[src]

impl Debug for ExternalMemoryHandleType[src]

impl Eq for ExternalMemoryHandleType[src]

impl Hash for ExternalMemoryHandleType[src]

impl PartialEq<ExternalMemoryHandleType> for ExternalMemoryHandleType[src]

impl StructuralEq for ExternalMemoryHandleType[src]

impl StructuralPartialEq for ExternalMemoryHandleType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.