pub struct ImageWithoutMemory { /* private fields */ }Expand description
An image with no memory. Call Image::new to bind memory and create an
Image.
Implementations§
Source§impl ImageWithoutMemory
impl ImageWithoutMemory
Sourcepub fn new(device: &Arc<Device>, info: &ImageCreateInfo<'_>) -> Result<Self>
pub fn new(device: &Arc<Device>, info: &ImageCreateInfo<'_>) -> Result<Self>
(see vkCreateImage)
Source§impl ImageWithoutMemory
impl ImageWithoutMemory
Sourcepub fn mut_handle(&mut self) -> Mut<'_, VkImage>
pub fn mut_handle(&mut self) -> Mut<'_, VkImage>
Borrows the inner Vulkan handle.
Sourcepub fn memory_requirements(&self) -> MemoryRequirements
pub fn memory_requirements(&self) -> MemoryRequirements
If ImageCreateInfo::usage includes a storage image usage type and
the robust buffer access feature was not enabled at device creation, any
host-visible memory types will be removed from the output. Note that on
some physical devices (eg software rasterizers), all memory types are
host-visible.
Sourcepub fn allocate_memory(
self,
memory_type_index: u32,
) -> ResultAndSelf<Arc<Image>, Self>
pub fn allocate_memory( self, memory_type_index: u32, ) -> ResultAndSelf<Arc<Image>, Self>
Allocate a single piece of memory for the image and bind it.
Trait Implementations§
Source§impl Debug for ImageWithoutMemory
impl Debug for ImageWithoutMemory
Source§impl Drop for ImageWithoutMemory
impl Drop for ImageWithoutMemory
Auto Trait Implementations§
impl Freeze for ImageWithoutMemory
impl RefUnwindSafe for ImageWithoutMemory
impl Send for ImageWithoutMemory
impl Sync for ImageWithoutMemory
impl Unpin for ImageWithoutMemory
impl UnsafeUnpin for ImageWithoutMemory
impl UnwindSafe for ImageWithoutMemory
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