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