Image

Struct Image 

Source
pub struct Image { /* private fields */ }

Implementations§

Source§

impl Image

Source

pub fn new( alloc_access: Arc<dyn AllocatorAccess>, image_properties: ImageProperties, allocation_info: AllocationCreateInfo, ) -> VkResult<Self>

Source

pub unsafe fn new_from_create_info( alloc_access: Arc<dyn AllocatorAccess>, image_create_info_builder: ImageCreateInfoBuilder<'_>, allocation_info: AllocationCreateInfo, ) -> VkResult<Self>

Source

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.

Source

pub fn properties(&self) -> &ImageProperties

Source

pub fn allocator_access(&self) -> &Arc<dyn AllocatorAccess>

Source

pub fn memory_allocation(&self) -> &MemoryAllocation

Trait Implementations§

Source§

impl AllocationAccess for Image

Source§

fn memory_allocation_mut(&mut self) -> &mut MemoryAllocation

Source§

fn write_into_bytes<T>( &mut self, write_data: T, allocation_offset: usize, ) -> Result<(), MemoryError>
where T: NoUninit,

Source§

fn write_slice<T>( &mut self, write_data: &[T], allocation_offset: usize, ) -> Result<(), MemoryError>
where T: NoUninit,

Source§

fn write_bytes( &mut self, write_bytes: &[u8], allocation_offset: usize, ) -> Result<(), MemoryError>

Source§

fn write_struct<T>( &mut self, write_data: T, allocation_offset: usize, ) -> Result<(), MemoryError>

Source§

fn write_iter<I, T>( &mut self, write_data: I, allocation_offset: usize, ) -> Result<(), MemoryError>
where I: IntoIterator<Item = T>, I::IntoIter: ExactSizeIterator,

Source§

fn read_vec<T>( &mut self, element_count: usize, allocation_offset: usize, ) -> Result<Vec<T>, MemoryError>
where T: Pod,

Source§

fn read_struct<T>(&mut self, allocation_offset: usize) -> Result<T, MemoryError>

Source§

impl DeviceOwned for Image

Source§

fn device(&self) -> &Arc<Device>

Source§

fn handle_raw(&self) -> u64

Source§

impl Drop for Image

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ImageAccess for Image

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.