Struct vulkano::memory::pool::StdNonHostVisibleMemoryTypePool
[−]
[src]
pub struct StdNonHostVisibleMemoryTypePool { /* fields omitted */ }
Memory pool that operates on a given memory type.
Methods
impl StdNonHostVisibleMemoryTypePool
[src]
fn new(device: &Arc<Device>, memory_type: MemoryType) -> Arc<StdNonHostVisibleMemoryTypePool>
Creates a new pool that will operate on the given memory type.
Panic
- Panics if the
device
andmemory_type
don't belong to the same physical device.
fn alloc(me: &Arc<Self>, size: usize, alignment: usize) -> Result<StdNonHostVisibleMemoryTypePoolAlloc, OomError>
fn device(&self) -> &Arc<Device>
Returns the device this pool operates on.
fn memory_type(&self) -> MemoryType
Returns the memory type this pool operates on.