#[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: StructureTypeVkStructureType sTypep_next: *const voidvoid const* pNextOptional
flags: HostImageCopyFlagsVkHostImageCopyFlags flagsOptional
src_image: Option<Image>VkImage srcImagesrc_image_layout: ImageLayoutVkImageLayout srcImageLayoutregion_count: uint32_tuint32_t regionCountp_regions: *const ImageToMemoryCopy<'a>VkImageToMemoryCopy const* pRegionsLength by: CopyImageToMemoryInfo::region_count (regionCount)
Implementations§
Source§impl<'a> CopyImageToMemoryInfo<'a>
impl<'a> CopyImageToMemoryInfo<'a>
Sourcepub fn new(new: CopyImageToMemoryInfo<'a>) -> Self
pub fn new(new: CopyImageToMemoryInfo<'a>) -> Self
Create the CopyImageToMemoryInfo with required fields
Source§impl<'a> CopyImageToMemoryInfo<'a>
impl<'a> CopyImageToMemoryInfo<'a>
Sourcepub fn flags(self, flags: HostImageCopyFlags) -> Self
pub fn flags(self, flags: HostImageCopyFlags) -> Self
VkHostImageCopyFlags flagsOptional
Sourcepub fn src_image_layout(self, src_image_layout: ImageLayout) -> Self
pub fn src_image_layout(self, src_image_layout: ImageLayout) -> Self
VkImageLayout srcImageLayoutSourcepub fn region_count(self, region_count: uint32_t) -> Self
pub fn region_count(self, region_count: uint32_t) -> Self
uint32_t regionCountSourcepub fn regions(self, regions: &'a [ImageToMemoryCopy<'a>]) -> Self
pub fn regions(self, regions: &'a [ImageToMemoryCopy<'a>]) -> Self
VkImageToMemoryCopy const* pRegionsLength by: vk::CopyImageToMemoryInfo::region_count (regionCount)
Trait Implementations§
Source§impl<'a, 'b> Abi<*const VkCopyImageToMemoryInfo> for &'b CopyImageToMemoryInfo<'a>
impl<'a, 'b> Abi<*const VkCopyImageToMemoryInfo> for &'b CopyImageToMemoryInfo<'a>
fn abi(self) -> *const VkCopyImageToMemoryInfo
Source§impl<'a, 'b> Abi<*mut VkCopyImageToMemoryInfo> for &'b mut CopyImageToMemoryInfo<'a>
impl<'a, 'b> Abi<*mut VkCopyImageToMemoryInfo> for &'b mut CopyImageToMemoryInfo<'a>
fn abi(self) -> *mut VkCopyImageToMemoryInfo
Source§impl<'a> Abi<VkCopyImageToMemoryInfo> for CopyImageToMemoryInfo<'a>
impl<'a> Abi<VkCopyImageToMemoryInfo> for CopyImageToMemoryInfo<'a>
fn abi(self) -> VkCopyImageToMemoryInfo
Source§impl<'a> Chainable for CopyImageToMemoryInfo<'a>
impl<'a> Chainable for CopyImageToMemoryInfo<'a>
Source§fn p_next_mut(&mut self) -> &mut *mut c_void
fn p_next_mut(&mut self) -> &mut *mut c_void
The mutable reference of
pNext fieldSource§unsafe fn push_next<E: Extend<Self>>(&mut self, ex: &mut E) -> &mut Self
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
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<'_>>
unsafe fn next(&self) -> Option<&BaseInStructure<'_>>
Get the next struct in the chain
Source§unsafe fn next_mut(&mut self) -> Option<&mut BaseOutStructure<'_>>
unsafe fn next_mut(&mut self) -> Option<&mut BaseOutStructure<'_>>
Get the next struct in the chain
Source§unsafe fn upcast(&self) -> &BaseInStructure<'_>
unsafe fn upcast(&self) -> &BaseInStructure<'_>
Upcast the struct to
VkBaseInStructureSource§unsafe fn upcast_mut(&mut self) -> &mut BaseOutStructure<'_>
unsafe fn upcast_mut(&mut self) -> &mut BaseOutStructure<'_>
Upcast the struct to
VkBaseOutStructureSource§impl<'a> Clone for CopyImageToMemoryInfo<'a>
impl<'a> Clone for CopyImageToMemoryInfo<'a>
Source§fn clone(&self) -> CopyImageToMemoryInfo<'a>
fn clone(&self) -> CopyImageToMemoryInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CopyImageToMemoryInfo<'a>
impl<'a> Debug for CopyImageToMemoryInfo<'a>
Source§impl<'a> Default for CopyImageToMemoryInfo<'a>
impl<'a> Default for CopyImageToMemoryInfo<'a>
Source§impl<'a> From<CopyImageToMemoryInfo<'a>> for CopyImageToMemoryInfo<'a>
impl<'a> From<CopyImageToMemoryInfo<'a>> for CopyImageToMemoryInfo<'a>
Source§fn from(value: CopyImageToMemoryInfo<'a>) -> Self
fn from(value: CopyImageToMemoryInfo<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<CopyImageToMemoryInfo<'a>> for VkCopyImageToMemoryInfo
impl<'a> From<CopyImageToMemoryInfo<'a>> for VkCopyImageToMemoryInfo
Source§fn from(value: CopyImageToMemoryInfo<'a>) -> Self
fn from(value: CopyImageToMemoryInfo<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<VkCopyImageToMemoryInfo> for CopyImageToMemoryInfo<'a>
impl<'a> From<VkCopyImageToMemoryInfo> for CopyImageToMemoryInfo<'a>
Source§fn from(value: VkCopyImageToMemoryInfo) -> Self
fn from(value: VkCopyImageToMemoryInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> StructType for CopyImageToMemoryInfo<'a>
impl<'a> StructType for CopyImageToMemoryInfo<'a>
Source§const TYPE: StructureType = crate::vk::StructureType::CopyImageToMemoryInfo
const TYPE: StructureType = crate::vk::StructureType::CopyImageToMemoryInfo
CopyImageToMemoryInfo
Source§impl<'a> Sys<'a> for CopyImageToMemoryInfo<'a>
impl<'a> Sys<'a> for CopyImageToMemoryInfo<'a>
type Target = VkCopyImageToMemoryInfo
Source§fn sys(self) -> VkCopyImageToMemoryInfo
fn sys(self) -> VkCopyImageToMemoryInfo
Convert to sys types
impl<'a> Copy for CopyImageToMemoryInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for CopyImageToMemoryInfo<'a>
impl<'a> RefUnwindSafe for CopyImageToMemoryInfo<'a>
impl<'a> !Send for CopyImageToMemoryInfo<'a>
impl<'a> !Sync for CopyImageToMemoryInfo<'a>
impl<'a> Unpin for CopyImageToMemoryInfo<'a>
impl<'a> UnsafeUnpin for CopyImageToMemoryInfo<'a>
impl<'a> UnwindSafe for CopyImageToMemoryInfo<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more