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