#[repr(C)]pub struct ImageInfo {
pub tiling: ImageTiling,
pub layout: ImageLayout,
pub format: Format,
pub image_usage_flags: ImageUsageFlags,
pub sample_count: u32,
pub level_count: u32,
pub current_queue_family: u32,
pub protected: Protected,
pub ycbcr_conversion_info: YcbcrConversionInfo,
pub sharing_mode: SharingMode,
/* private fields */
}Fields§
§tiling: ImageTiling§layout: ImageLayout§format: Format§image_usage_flags: ImageUsageFlags§sample_count: u32§level_count: u32§current_queue_family: u32§protected: Protected§ycbcr_conversion_info: YcbcrConversionInfo§sharing_mode: SharingModeImplementations§
source§impl ImageInfo
impl ImageInfo
sourcepub unsafe fn new(
image: Image,
alloc: Alloc,
tiling: ImageTiling,
layout: ImageLayout,
format: Format,
level_count: u32,
current_queue_family: impl Into<Option<u32>>,
ycbcr_conversion_info: impl Into<Option<YcbcrConversionInfo>>,
protected: impl Into<Option<Protected>>,
sharing_mode: impl Into<Option<SharingMode>>,
) -> Self
pub unsafe fn new( image: Image, alloc: Alloc, tiling: ImageTiling, layout: ImageLayout, format: Format, level_count: u32, current_queue_family: impl Into<Option<u32>>, ycbcr_conversion_info: impl Into<Option<YcbcrConversionInfo>>, protected: impl Into<Option<Protected>>, sharing_mode: impl Into<Option<SharingMode>>, ) -> Self
§Safety
The Vulkan image and alloc must outlive the lifetime of the ImageInfo returned.
sourcepub unsafe fn from_info(info: &ImageInfo, layout: ImageLayout) -> Self
pub unsafe fn from_info(info: &ImageInfo, layout: ImageLayout) -> Self
§Safety
The Vulkan info.image and info.alloc must outlive the lifetime of the ImageInfo returned.
sourcepub unsafe fn from_info_with_queue_index(
info: &ImageInfo,
layout: ImageLayout,
family_queue_index: u32,
) -> Self
pub unsafe fn from_info_with_queue_index( info: &ImageInfo, layout: ImageLayout, family_queue_index: u32, ) -> Self
§Safety
The Vulkan info.image and info.alloc must outlive the lifetime of the ImageInfo returned.
Trait Implementations§
impl Copy for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
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