Enum vulkano::image::ImageMemory
source · pub enum ImageMemory {
Normal(SmallVec<[ResourceMemory; 4]>),
Sparse(Vec<SparseImageMemoryRequirements>),
Swapchain {
swapchain: Arc<Swapchain>,
image_index: u32,
},
}
Expand description
The type of backing memory that an image can have.
Variants§
Normal(SmallVec<[ResourceMemory; 4]>)
The image is backed by normal memory, bound with bind_memory
.
Sparse(Vec<SparseImageMemoryRequirements>)
The image is backed by sparse memory, bound with bind_sparse
.
Swapchain
The image is backed by memory owned by a Swapchain
.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ImageMemory
impl Send for ImageMemory
impl Sync for ImageMemory
impl Unpin for ImageMemory
impl !UnwindSafe for ImageMemory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more