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)
Same as ExternalMemoryTypeFlags::HOST_ALLOCATION while holding a Ptr.
HostMappedForeignMemory(Ptr)
Same as ExternalMemoryTypeFlags::HOST_MAPPED_FOREIGN_MEMORY while holding a Ptr.
Implementations§
Source§impl ExternalImageMemory
impl ExternalImageMemory
Sourcepub fn external_memory_type(&self) -> ExternalMemoryType
pub fn external_memory_type(&self) -> ExternalMemoryType
Get the ExternalMemoryType from this enum.
Sourcepub fn platform_memory_type(&self) -> PlatformMemoryType
pub fn platform_memory_type(&self) -> PlatformMemoryType
Get the PlatformMemoryType from this enum.