pub enum ExternalImageMemory {
    OpaqueWin32(Handle),
    OpaqueWin32Kmt(Handle),
    D3D11Texture(Handle),
    D3D11TextureKmt(Handle),
    D3D12Heap(Handle),
    D3D12Resource(Handle),
    HostAllocation(Ptr),
    HostMappedForeignMemory(Ptr),
}
Expand description

Representation of an external memory for image creation.

Variants

OpaqueWin32(Handle)

This is supported on Windows only. Same as ExternalMemoryTypeFlags::OPAQUE_WIN32 while holding a Handle.

OpaqueWin32Kmt(Handle)

This is supported on Windows only. Same as ExternalMemoryTypeFlags::OPAQUE_WIN32_KMT while holding a Handle.

D3D11Texture(Handle)

This is supported on Windows only. Same as ExternalMemoryTypeFlags::D3D11_TEXTURE while holding a Handle.

D3D11TextureKmt(Handle)

This is supported on Windows only. Same as ExternalMemoryTypeFlags::D3D11_TEXTURE_KMT while holding a Handle.

D3D12Heap(Handle)

This is supported on Windows only. Same as ExternalMemoryTypeFlags::D3D12_HEAP while holding a Handle.

D3D12Resource(Handle)

This is supported on Windows only. Same as ExternalMemoryTypeFlags::D3D12_RESOURCE while holding a Handle.

HostAllocation(Ptr)

HostMappedForeignMemory(Ptr)

Implementations

Get the ExternalMemoryType from this enum.

Get the PlatformMemoryType from this enum.

Get the associated windows handle as (Handle).

Get the associated host pointer as (Ptr).

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

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.