Struct ash::vk::definitions::ImageCreateInfo
source · #[repr(C)]pub struct ImageCreateInfo<'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§
source§impl<'a> ImageCreateInfo<'a>
impl<'a> ImageCreateInfo<'a>
pub fn flags(self, flags: ImageCreateFlags) -> Self
pub fn image_type(self, image_type: ImageType) -> Self
pub fn format(self, format: Format) -> Self
pub fn extent(self, extent: Extent3D) -> Self
pub fn mip_levels(self, mip_levels: u32) -> Self
pub fn array_layers(self, array_layers: u32) -> Self
pub fn samples(self, samples: SampleCountFlags) -> Self
pub fn tiling(self, tiling: ImageTiling) -> Self
pub fn usage(self, usage: ImageUsageFlags) -> Self
pub fn sharing_mode(self, sharing_mode: SharingMode) -> Self
pub fn queue_family_indices(self, queue_family_indices: &'a [u32]) -> Self
pub fn initial_layout(self, initial_layout: ImageLayout) -> Self
sourcepub fn push_next<T: ExtendsImageCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsImageCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
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§
source§impl<'a> Clone for ImageCreateInfo<'a>
impl<'a> Clone for ImageCreateInfo<'a>
source§fn clone(&self) -> ImageCreateInfo<'a>
fn clone(&self) -> ImageCreateInfo<'a>
Returns a copy 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 ImageCreateInfo<'a>
impl<'a> Debug for ImageCreateInfo<'a>
source§impl Default for ImageCreateInfo<'_>
impl Default for ImageCreateInfo<'_>
source§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)