freya_engine::prelude

Struct VkImageInfo

#[repr(C)]
pub struct VkImageInfo { 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§

§

impl ImageInfo

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.

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.

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.

§

impl ImageInfo

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

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

§Safety

image must outlive usages of self.

pub fn alloc(&self) -> &Alloc

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

§Safety

alloc must outlive usages of self.

Trait Implementations§

§

impl Clone for ImageInfo

§

fn clone(&self) -> ImageInfo

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for ImageInfo

§

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

Formats the value using the given formatter. Read more
§

impl Default for ImageInfo

§

fn default() -> ImageInfo

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

impl Copy for ImageInfo

§

impl Send for ImageInfo

§

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.

§

impl<N, T> NativeTransmutableWrapper<N> for T
where T: NativeTransmutable<N>,

§

fn wrap(native: N) -> T

§

fn unwrap(self) -> N

§

fn inner(&self) -> &N

§

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.