INNER CODE UNIT · Rust
from
gfx-rs/gfx · src/auxil/external-memory/src/lib.rs:217
fn from(external_memory_type: ExternalImageMemoryType) -> Self {
match external_memory_type {
#[cfg(unix)]
ExternalImageMemoryType::OpaqueFd => Self::OPAQUE_FD,
#[cfg(windows)]
ExternalImageMemoryType::OpaqueWin32 => Self::OPAQUE_WIN32,
#[cfg(windows)]
ExternalImageMemoryType::OpaqueWin32Kmt => Self::OPAQUE_WIN32_KMT,
#[cfg(windows)]
ExternalImageMemoryType::D3D11Texture => Self::D3D11_TEXTURE,
#[cfg(windows)]
ExternalImageMemoryType::D3D11TextureKmt => Self::D3D11_TEXTURE_KMT,
#[cfg(windows)]
ExternalImageMemoryType::D3D12Heap => Self::D3D12_HEAP,
#[cfg(windows)]
ExternalImageMemoryType::D3D12Resource => Self::D3D12_RESOURCE,
#[cfg(any(target_os = "linux", target_os = "android", doc))]
ExternalImageMemoryType::DmaBuf(_) => Self::DMA_BUF,