Struct vulkanite::vk::structs::ImageCreateInfo

source ·
#[repr(C)]
pub struct ImageCreateInfo<'a> { 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 initial_layout: ImageLayout, /* private fields */ }
Expand description

Fields§

§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§initial_layout: ImageLayout

Implementations§

source§

impl<'a> ImageCreateInfo<'a>

source

pub fn flags(self, value: ImageCreateFlags) -> Self

source

pub fn image_type(self, value: ImageType) -> Self

source

pub fn format(self, value: Format) -> Self

source

pub fn extent(self, value: Extent3D) -> Self

source

pub fn mip_levels(self, value: u32) -> Self

source

pub fn array_layers(self, value: u32) -> Self

source

pub fn samples(self, value: SampleCountFlags) -> Self

source

pub fn tiling(self, value: ImageTiling) -> Self

source

pub fn usage(self, value: ImageUsageFlags) -> Self

source

pub fn sharing_mode(self, value: SharingMode) -> Self

source

pub fn queue_family_index_count(self, value: u32) -> Self

source

pub fn initial_layout(self, value: ImageLayout) -> Self

source

pub fn queue_family_indices( self, p_queue_family_indices: impl AsSlice<'a, u32>, ) -> Self

source

pub fn get_queue_family_indices(&self) -> &'a [u32]

source

pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self

Trait Implementations§

source§

impl<'a> Default for ImageCreateInfo<'a>

source§

fn default() -> Self

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

impl<'a> ExtendableStructure for ImageCreateInfo<'a>

source§

const STRUCTURE_TYPE: StructureType = StructureType::ImageCreateInfo

source§

unsafe fn retrieve_next(&self) -> &Cell<*const Header>

source§

unsafe fn push_next_unchecked<T: ExtendableStructure>(&self, ext: &T)

Assuming the current structure chain is the following: Self -> Ext1 -> Ext2 -> Ext3 calling this function with Ext4 will result in: Self -> Ext4 -> Ext1 -> Ext2 -> Ext3 This function will never cause cycles in the structure chain This function is unsafe because it discards the lifetime (ExtendableStructure does not have a lifetime parameter) Also it does not check that T is a valid extension to be added to Self and only requires references (and not mutable references)
source§

fn new_uninit() -> MaybeUninit<Self>

Return a unitialized structure except the structure type being correctly set and the p_next pointer being set to null
source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for BufferCollectionImageCreateInfoFUCHSIA<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for DedicatedAllocationImageCreateInfoNV<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ExportMetalObjectCreateInfoEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ExternalFormatANDROID<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ExternalFormatQNX<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ExternalMemoryImageCreateInfo<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ExternalMemoryImageCreateInfoNV<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageAlignmentControlCreateInfoMESA<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageCompressionControlEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageDrmFormatModifierExplicitCreateInfoEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageDrmFormatModifierListCreateInfoEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageFormatListCreateInfo<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageStencilUsageCreateInfo<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageSwapchainCreateInfoKHR<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImportMetalIOSurfaceInfoEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImportMetalTextureInfoEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for OpaqueCaptureDescriptorDataCreateInfoEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for OpticalFlowImageFormatInfoNV<'a>

source§

impl<'a> Send for ImageCreateInfo<'a>

source§

impl<'a> Sync for ImageCreateInfo<'a>

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> 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> 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<H> StructureChainOut<H> for H

source§

fn setup_uninit(chain: &mut MaybeUninit<H>)

Setup an uninitialized structure chain After this call, for the structure chain to be initialized, each structure field (with the exception of the structure type and the p_next pointer) must be initialized (usually by calling the appropriate vulkan command) The structure type and p_next pointer of each struct are set so that a vulkan commands sees a pointer to the head as a valid chain containing all structures Calling setup_uninit should be enough to then call a vulkan command filling this structure chain, moreover after the call to this vulkan command, the whole structure chain should be considered initialized
source§

fn get_uninit_head_ptr(chain: *mut H) -> *mut H

Return a mutable pointer to the head structure, which can then be passed to vulkan commands
source§

fn setup_cleanup(_: *mut H)

Function to call after a vulkan function initialized this structure to make sure there is no dangling pointer or anything which could cause undefined behavior
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.
source§

impl<T> Alias<T> for T

source§

impl<T> ExtendingStructure<T> for T