Struct vulkano::memory::pool::StdHostVisibleMemoryTypePool
[−]
[src]
pub struct StdHostVisibleMemoryTypePool { /* fields omitted */ }
Memory pool that operates on a given memory type.
Methods
impl StdHostVisibleMemoryTypePool
[src]
fn new(
device: Arc<Device>,
memory_type: MemoryType
) -> Arc<StdHostVisibleMemoryTypePool>
[src]
device: Arc<Device>,
memory_type: MemoryType
) -> Arc<StdHostVisibleMemoryTypePool>
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. - Panics if the memory type is not host-visible.
fn alloc(
me: &Arc<Self>,
size: usize,
alignment: usize
) -> Result<StdHostVisibleMemoryTypePoolAlloc, DeviceMemoryAllocError>
[src]
me: &Arc<Self>,
size: usize,
alignment: usize
) -> Result<StdHostVisibleMemoryTypePoolAlloc, DeviceMemoryAllocError>
fn device(&self) -> &Arc<Device>
[src]
Returns the device this pool operates on.
fn memory_type(&self) -> MemoryType
[src]
Returns the memory type this pool operates on.