[][src]Struct vulkayes_core::resource::image::image::Image

pub struct Image { /* fields omitted */ }

Implementations

impl Image[src]

pub fn new<A: ImageMemoryAllocator>(
    device: Vrc<Device>,
    format: Format,
    size_info: ImageSizeInfo,
    tiling_and_layout: ImageTilingAndLayout,
    usage: ImageUsageFlags,
    sharing_mode: SharingMode<impl AsRef<[u32]>>,
    allocator_param: ImageAllocatorParams<'_, A>,
    host_memory_allocator: HostMemoryAllocator
) -> Result<Vrc<Self>, ImageError<A::Error>>
[src]

pub unsafe fn from_create_info<A: ImageMemoryAllocator>(
    device: Vrc<Device>,
    create_info: impl Deref<Target = ImageCreateInfo>,
    allocator_params: ImageAllocatorParams<'_, A>,
    host_memory_allocator: HostMemoryAllocator
) -> Result<Vrc<Self>, ImageError<A::Error>>
[src]

pub unsafe fn from_existing(
    device: Vrc<Device>,
    image: Image,
    memory: Option<DeviceMemoryAllocation>,
    usage: ImageUsageFlags,
    format: Format,
    size: ImageSize,
    host_memory_allocator: HostMemoryAllocator
) -> Self
[src]

Crates a new Image from existing VkImage.

Safety

  • image must have been crated from the device.
  • memory must have been allocated from the device.
  • All parameters must match the parameters used when creating the image.

pub const fn device(&self) -> &Vrc<Device>[src]

pub const fn usage(&self) -> ImageUsageFlags[src]

pub const fn size(&self) -> ImageSize[src]

pub const fn format(&self) -> Format[src]

pub fn memory(&self) -> Option<&DeviceMemoryAllocation>[src]

Methods from Deref<Target = Image>

Trait Implementations

impl Borrow<Image> for Image[src]

impl Debug for Image[src]

impl Deref for Image[src]

type Target = Image

The resulting type after dereferencing.

impl Drop for Image[src]

impl Eq for Image[src]

impl HasHandle<Image> for Image[src]

impl Hash for Image[src]

impl Ord for Image[src]

impl PartialEq<Image> for Image[src]

impl PartialOrd<Image> for Image[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.