Skip to main content

ImageInfo

Struct ImageInfo 

Source
pub struct ImageInfo {
    pub tiling: VkImageTiling,
    pub layout: VkImageLayout,
    pub format: VkFormat,
    pub image_usage_flags: u32,
    pub sample_count: u32,
    pub level_count: u32,
    pub current_queue_family: u32,
    pub protected: skgpu_Protected,
    pub ycbcr_conversion_info: YcbcrConversionInfo,
    pub sharing_mode: VkSharingMode,
    /* private fields */
}

Fields§

§tiling: VkImageTiling§layout: VkImageLayout§format: VkFormat§image_usage_flags: u32§sample_count: u32§level_count: u32§current_queue_family: u32§protected: skgpu_Protected§ycbcr_conversion_info: YcbcrConversionInfo§sharing_mode: VkSharingMode

Implementations§

Source§

impl ImageInfo

Source

pub unsafe fn new( image: *mut VkImage_T, alloc: Alloc, tiling: VkImageTiling, layout: VkImageLayout, format: VkFormat, level_count: u32, current_queue_family: impl Into<Option<u32>>, ycbcr_conversion_info: impl Into<Option<YcbcrConversionInfo>>, protected: impl Into<Option<skgpu_Protected>>, sharing_mode: impl Into<Option<VkSharingMode>>, ) -> ImageInfo

§Safety

The Vulkan image and alloc must outlive the lifetime of the ImageInfo returned.

Source

pub unsafe fn from_info(info: &ImageInfo, layout: VkImageLayout) -> ImageInfo

§Safety

The Vulkan info.image and info.alloc must outlive the lifetime of the ImageInfo returned.

Source

pub unsafe fn from_info_with_queue_index( info: &ImageInfo, layout: VkImageLayout, family_queue_index: u32, ) -> ImageInfo

§Safety

The Vulkan info.image and info.alloc must outlive the lifetime of the ImageInfo returned.

Source§

impl ImageInfo

Source

pub fn image(&self) -> &*mut VkImage_T

Source

pub unsafe fn set_image(&mut self, image: *mut VkImage_T)

§Safety

image must outlive usages of self.

Source

pub fn alloc(&self) -> &Alloc

Source

pub unsafe fn set_alloc(&mut self, alloc: Alloc)

§Safety

alloc must outlive usages of self.

Trait Implementations§

Source§

impl Clone for ImageInfo

Source§

fn clone(&self) -> ImageInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ImageInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for ImageInfo

Source§

fn default() -> ImageInfo

Returns the “default value” for a type. Read more
Source§

impl Copy for ImageInfo

Source§

impl Send for ImageInfo

Source§

impl Sync for ImageInfo

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<N, T> NativeTransmutableWrapper<N> for T
where T: NativeTransmutable<N>,

Source§

fn wrap(native: N) -> T

Source§

fn unwrap(self) -> N

Source§

fn inner(&self) -> &N

Source§

fn inner_mut(&mut self) -> &mut N

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.