Skip to main content

CopyImageToMemoryInfo

Struct CopyImageToMemoryInfo 

Source
#[repr(C)]
pub struct CopyImageToMemoryInfo<'a> { pub s_type: StructureType, pub p_next: *const void, pub flags: HostImageCopyFlags, pub src_image: Option<Image>, pub src_image_layout: ImageLayout, pub region_count: uint32_t, pub p_regions: *const ImageToMemoryCopy<'a>, }
Expand description

VkCopyImageToMemoryInfo

Fields§

§s_type: StructureType
VkStructureType sType

Value: StructureType::CopyImageToMemoryInfo

§p_next: *const void
void const* pNext

Optional

§flags: HostImageCopyFlags
VkHostImageCopyFlags flags

Optional

§src_image: Option<Image>
VkImage srcImage
§src_image_layout: ImageLayout
VkImageLayout srcImageLayout
§region_count: uint32_t
uint32_t regionCount
§p_regions: *const ImageToMemoryCopy<'a>
VkImageToMemoryCopy const* pRegions

Length by: CopyImageToMemoryInfo::region_count (regionCount)

Implementations§

Source§

impl<'a> CopyImageToMemoryInfo<'a>

Source

pub fn new(new: CopyImageToMemoryInfo<'a>) -> Self

Create the CopyImageToMemoryInfo with required fields

Source§

impl<'a> CopyImageToMemoryInfo<'a>

Source

pub fn flags(self, flags: HostImageCopyFlags) -> Self

VkHostImageCopyFlags flags

Optional

Source

pub fn src_image(self, src_image: Image) -> Self

VkImage srcImage
Source

pub fn src_image_layout(self, src_image_layout: ImageLayout) -> Self

VkImageLayout srcImageLayout
Source

pub fn region_count(self, region_count: uint32_t) -> Self

uint32_t regionCount
Source

pub fn regions(self, regions: &'a [ImageToMemoryCopy<'a>]) -> Self

VkImageToMemoryCopy const* pRegions

Length by: vk::CopyImageToMemoryInfo::region_count (regionCount)

Trait Implementations§

Source§

impl<'a, 'b> Abi<*const VkCopyImageToMemoryInfo> for &'b CopyImageToMemoryInfo<'a>

Source§

impl<'a, 'b> Abi<*mut VkCopyImageToMemoryInfo> for &'b mut CopyImageToMemoryInfo<'a>

Source§

impl<'a> Abi<VkCopyImageToMemoryInfo> for CopyImageToMemoryInfo<'a>

Source§

impl<'a> Chainable for CopyImageToMemoryInfo<'a>

Source§

fn p_next(&self) -> &*const c_void

The const reference of pNext field
Source§

fn p_next_mut(&mut self) -> &mut *mut c_void

The mutable reference of pNext field
Source§

unsafe fn push_next<E: Extend<Self>>(&mut self, ex: &mut E) -> &mut Self

Push the next struct to the chain
Source§

unsafe fn with_next<E: Extend<Self>>(self, ex: &mut E) -> Self

Push the next struct to the chain
Source§

unsafe fn next(&self) -> Option<&BaseInStructure<'_>>

Get the next struct in the chain
Source§

unsafe fn next_mut(&mut self) -> Option<&mut BaseOutStructure<'_>>

Get the next struct in the chain
Source§

unsafe fn upcast(&self) -> &BaseInStructure<'_>

Upcast the struct to VkBaseInStructure
Source§

unsafe fn upcast_mut(&mut self) -> &mut BaseOutStructure<'_>

Upcast the struct to VkBaseOutStructure
Source§

impl<'a> Clone for CopyImageToMemoryInfo<'a>

Source§

fn clone(&self) -> CopyImageToMemoryInfo<'a>

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

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

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for CopyImageToMemoryInfo<'a>

Source§

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

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

impl<'a> Default for CopyImageToMemoryInfo<'a>

Source§

fn default() -> Self

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

impl<'a> From<CopyImageToMemoryInfo<'a>> for CopyImageToMemoryInfo<'a>

Source§

fn from(value: CopyImageToMemoryInfo<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<CopyImageToMemoryInfo<'a>> for VkCopyImageToMemoryInfo

Source§

fn from(value: CopyImageToMemoryInfo<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<VkCopyImageToMemoryInfo> for CopyImageToMemoryInfo<'a>

Source§

fn from(value: VkCopyImageToMemoryInfo) -> Self

Converts to this type from the input type.
Source§

impl<'a> StructType for CopyImageToMemoryInfo<'a>

Source§

const TYPE: StructureType = crate::vk::StructureType::CopyImageToMemoryInfo

CopyImageToMemoryInfo

Source§

impl<'a> Sys<'a> for CopyImageToMemoryInfo<'a>

Source§

impl<'a> Copy for CopyImageToMemoryInfo<'a>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Abi<T> for T

Source§

fn abi(self) -> T

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<T, O, S> MakeUnique<O, S> for T
where T: Copy, O: Owner<T, S>,

Source§

type Output = Unique<T, O, S>

The unique
Source§

fn unique(self, owner: O) -> <T as MakeUnique<O, S>>::Output

Make a unique from a raw handle and an owner
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.