gfx_hal/external_memory/mod.rs
1//! Structures related to the import external memory functionality.
2
3mod errors;
4pub use errors::*;
5
6pub use external_memory::*;
7
8bitflags!(
9 #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
10 /// External memory properties.
11 pub struct ExternalMemoryProperties: u32 {
12 /// The memory can be exported using [Device::export_memory][Device::export_memory].
13 const EXPORTABLE = (1 << 0);
14 /// The memory can be imported using [Device::import_external_image][Device::import_external_image] and [Device::import_external_buffer][Device::import_external_buffer].
15 const IMPORTABLE = (1 << 1);
16 /// The memory created using [Device::import_external_image][Device::import_external_image] and [Device::import_external_buffer][Device::import_external_buffer] can be exported using [Device::export_memory][Device::export_memory].
17 const EXPORTABLE_FROM_IMPORTED = (1 << 2);
18 }
19);