Struct VkImage Create Info
#[repr(C)]pub struct VkImageCreateInfo<'a> {Show 16 fields
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: ImageCreateFlags,
pub image_type: ImageType,
pub format: Format,
pub extent: Extent3D,
pub mip_levels: u32,
pub array_layers: u32,
pub samples: SampleCountFlags,
pub tiling: ImageTiling,
pub usage: ImageUsageFlags,
pub sharing_mode: SharingMode,
pub queue_family_index_count: u32,
pub p_queue_family_indices: *const u32,
pub initial_layout: ImageLayout,
pub _marker: PhantomData<&'a ()>,
}Expand description
Fields§
§s_type: StructureType§p_next: *const c_void§flags: ImageCreateFlags§image_type: ImageType§format: Format§extent: Extent3D§mip_levels: u32§array_layers: u32§samples: SampleCountFlags§tiling: ImageTiling§usage: ImageUsageFlags§sharing_mode: SharingMode§queue_family_index_count: u32§p_queue_family_indices: *const u32§initial_layout: ImageLayout§_marker: PhantomData<&'a ()>Implementations§
§impl<'a> ImageCreateInfo<'a>
impl<'a> ImageCreateInfo<'a>
pub fn flags(self, flags: ImageCreateFlags) -> ImageCreateInfo<'a>
pub fn image_type(self, image_type: ImageType) -> ImageCreateInfo<'a>
pub fn format(self, format: Format) -> ImageCreateInfo<'a>
pub fn extent(self, extent: Extent3D) -> ImageCreateInfo<'a>
pub fn mip_levels(self, mip_levels: u32) -> ImageCreateInfo<'a>
pub fn array_layers(self, array_layers: u32) -> ImageCreateInfo<'a>
pub fn samples(self, samples: SampleCountFlags) -> ImageCreateInfo<'a>
pub fn tiling(self, tiling: ImageTiling) -> ImageCreateInfo<'a>
pub fn usage(self, usage: ImageUsageFlags) -> ImageCreateInfo<'a>
pub fn sharing_mode(self, sharing_mode: SharingMode) -> ImageCreateInfo<'a>
pub fn queue_family_indices( self, queue_family_indices: &'a [u32], ) -> ImageCreateInfo<'a>
pub fn initial_layout(self, initial_layout: ImageLayout) -> ImageCreateInfo<'a>
pub fn push_next<T>(self, next: &'a mut T) -> ImageCreateInfo<'a>where
T: ExtendsImageCreateInfo + ?Sized,
pub fn push_next<T>(self, next: &'a mut T) -> ImageCreateInfo<'a>where
T: ExtendsImageCreateInfo + ?Sized,
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C, and you call x.push_next(&mut D), then the
chain will look like A -> D -> B -> C.
Trait Implementations§
§impl<'a> Clone for ImageCreateInfo<'a>
impl<'a> Clone for ImageCreateInfo<'a>
§fn clone(&self) -> ImageCreateInfo<'a>
fn clone(&self) -> ImageCreateInfo<'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 more§impl<'a> Debug for ImageCreateInfo<'a>
impl<'a> Debug for ImageCreateInfo<'a>
§impl Default for ImageCreateInfo<'_>
impl Default for ImageCreateInfo<'_>
§fn default() -> ImageCreateInfo<'_>
fn default() -> ImageCreateInfo<'_>
Returns the “default value” for a type. Read more
§impl<'a> TaggedStructure for ImageCreateInfo<'a>
impl<'a> TaggedStructure for ImageCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::IMAGE_CREATE_INFO
impl<'a> Copy for ImageCreateInfo<'a>
impl Send for ImageCreateInfo<'_>
impl Sync for ImageCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for ImageCreateInfo<'a>
impl<'a> RefUnwindSafe for ImageCreateInfo<'a>
impl<'a> Unpin for ImageCreateInfo<'a>
impl<'a> UnwindSafe for ImageCreateInfo<'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