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