pub struct ImageCreateInfo<'d>(/* private fields */);Implementations§
Source§impl<'d> ImageCreateInfo<'d>
impl<'d> ImageCreateInfo<'d>
pub fn new<Size: ImageSize>(size: Size, format: VkFormat) -> Self
pub const unsafe fn from_raw(raw: VkImageCreateInfo) -> Self
pub const fn into_raw(self) -> VkImageCreateInfo
pub fn with_next(self, next: &'d (impl TypedVulkanStructure + ?Sized)) -> Self
Sourcepub fn size<Size: ImageSize>(self, size: Size) -> Self
pub fn size<Size: ImageSize>(self, size: Size) -> Self
Sets an size and a dimension of the created image.
Sourcepub const fn init_layout(self, layout: ImageLayout) -> Self
pub const fn init_layout(self, layout: ImageLayout) -> Self
Sets an initial layout for the created image. default: Undefined layout
Sourcepub const fn sharing_queue_families(self, indices: &'d [u32]) -> Self
pub const fn sharing_queue_families(self, indices: &'d [u32]) -> Self
A list of queue families that will access this image, or an empty list if no queue families can access this image simultaneously
Sourcepub const fn sample_counts(self, count_bits: u32) -> Self
pub const fn sample_counts(self, count_bits: u32) -> Self
The number of sub-data element samples in the image bitmask of 1(default), 2, 4, 8, 16, 32, 64
Sourcepub const fn use_linear_tiling(self) -> Self
pub const fn use_linear_tiling(self) -> Self
Sets the tiling arrangement of the data elements in memory as “linear tiling” default: optimal tiling
Sourcepub const fn flags(self, opt: ImageFlags) -> Self
pub const fn flags(self, opt: ImageFlags) -> Self
A bitmask of ImageFlagsdescribing additional parameters of the image
default: none
Sourcepub const fn array_layers(self, layers: u32) -> Self
pub const fn array_layers(self, layers: u32) -> Self
The number of layers in the image default: 1
Sourcepub const fn mip_levels(self, levels: u32) -> Self
pub const fn mip_levels(self, levels: u32) -> Self
The number of levels of detail available for minified sampling of the image default: 1
Sourcepub const fn with_usage(self, bits: ImageUsageFlags) -> Self
pub const fn with_usage(self, bits: ImageUsageFlags) -> Self
Merges some custom usage flag bits.
Sourcepub const fn set_usage(self, bits: ImageUsageFlags) -> Self
pub const fn set_usage(self, bits: ImageUsageFlags) -> Self
Overwrites all of custom usage flag bits.
Trait Implementations§
Source§impl AsRef<VkImageCreateInfo> for ImageCreateInfo<'_>
impl AsRef<VkImageCreateInfo> for ImageCreateInfo<'_>
Source§fn as_ref(&self) -> &VkImageCreateInfo
fn as_ref(&self) -> &VkImageCreateInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'d> Clone for ImageCreateInfo<'d>
impl<'d> Clone for ImageCreateInfo<'d>
Source§fn clone(&self) -> ImageCreateInfo<'d>
fn clone(&self) -> ImageCreateInfo<'d>
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 moreAuto Trait Implementations§
impl<'d> Freeze for ImageCreateInfo<'d>
impl<'d> !RefUnwindSafe for ImageCreateInfo<'d>
impl<'d> !Send for ImageCreateInfo<'d>
impl<'d> !Sync for ImageCreateInfo<'d>
impl<'d> Unpin for ImageCreateInfo<'d>
impl<'d> !UnwindSafe for ImageCreateInfo<'d>
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