Struct vulkano::memory::pool::StdNonHostVisibleMemoryTypePool [−][src]
pub struct StdNonHostVisibleMemoryTypePool { /* fields omitted */ }
Expand description
Memory pool that operates on a given memory type.
Implementations
pub fn new(
device: Arc<Device>,
memory_type: MemoryType<'_>
) -> Arc<StdNonHostVisibleMemoryTypePool>
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: DeviceSize,
alignment: DeviceSize
) -> Result<StdNonHostVisibleMemoryTypePoolAlloc, DeviceMemoryAllocError>
pub fn alloc(
me: &Arc<Self>,
size: DeviceSize,
alignment: DeviceSize
) -> Result<StdNonHostVisibleMemoryTypePoolAlloc, DeviceMemoryAllocError>
Returns the memory type this pool operates on.
Trait Implementations
Auto Trait Implementations
impl Send for StdNonHostVisibleMemoryTypePool
impl Sync for StdNonHostVisibleMemoryTypePool
impl Unpin for StdNonHostVisibleMemoryTypePool
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.