pub struct Image { /* private fields */ }Implementations§
Source§impl Image
impl Image
pub fn new( alloc_access: Arc<dyn AllocatorAccess>, image_properties: ImageProperties, allocation_info: AllocationCreateInfo, ) -> VkResult<Self>
pub unsafe fn new_from_create_info( alloc_access: Arc<dyn AllocatorAccess>, image_create_info_builder: ImageCreateInfoBuilder<'_>, allocation_info: AllocationCreateInfo, ) -> VkResult<Self>
Sourcepub fn new_tranient(
memory_allocator: Arc<MemoryAllocator>,
dimensions: ImageDimensions,
format: Format,
additional_usage: ImageUsageFlags,
) -> VkResult<Self>
pub fn new_tranient( memory_allocator: Arc<MemoryAllocator>, dimensions: ImageDimensions, format: Format, additional_usage: ImageUsageFlags, ) -> VkResult<Self>
Create a (preferably) lazily-allocated transient attachment image.
pub fn properties(&self) -> &ImageProperties
pub fn allocator_access(&self) -> &Arc<dyn AllocatorAccess>
pub fn memory_allocation(&self) -> &MemoryAllocation
Trait Implementations§
Source§impl AllocationAccess for Image
impl AllocationAccess for Image
fn memory_allocation_mut(&mut self) -> &mut MemoryAllocation
fn write_into_bytes<T>(
&mut self,
write_data: T,
allocation_offset: usize,
) -> Result<(), MemoryError>where
T: NoUninit,
fn write_slice<T>(
&mut self,
write_data: &[T],
allocation_offset: usize,
) -> Result<(), MemoryError>where
T: NoUninit,
fn write_bytes( &mut self, write_bytes: &[u8], allocation_offset: usize, ) -> Result<(), MemoryError>
fn write_struct<T>( &mut self, write_data: T, allocation_offset: usize, ) -> Result<(), MemoryError>
fn write_iter<I, T>( &mut self, write_data: I, allocation_offset: usize, ) -> Result<(), MemoryError>
fn read_vec<T>(
&mut self,
element_count: usize,
allocation_offset: usize,
) -> Result<Vec<T>, MemoryError>where
T: Pod,
fn read_struct<T>(&mut self, allocation_offset: usize) -> Result<T, MemoryError>
Source§impl DeviceOwned for Image
impl DeviceOwned for Image
Source§impl ImageAccess for Image
impl ImageAccess for Image
fn handle(&self) -> Image
fn dimensions(&self) -> ImageDimensions
Auto Trait Implementations§
impl Freeze for Image
impl !RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl !UnwindSafe for Image
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