logo
pub struct ImageCreateFlags {
    pub sparse_binding: bool,
    pub sparse_residency: bool,
    pub sparse_aliased: bool,
    pub mutable_format: bool,
    pub cube_compatible: bool,
    pub array_2d_compatible: bool,
    pub block_texel_view_compatible: bool,
}
Expand description

Flags that can be set when creating a new image.

Fields

sparse_binding: bool

The image will be backed by sparsely bound memory.

Requires the sparse_binding feature to be enabled.

sparse_residency: bool

The image is allowed to be only partially resident in memory, not all parts of the image must be backed by memory.

Requires the sparse_binding flag, and depending on the image dimensions, either the sparse_residency_image2_d or the sparse_residency_image3_d feature to be enabled. For a multisampled image, this also requires the appropriate sparse residency feature for the number of samples to be enabled.

sparse_aliased: bool

The image can be backed by memory that is shared (aliased) with other images.

Requires the sparse_binding flag and the sparse_residency_aliased feature to be enabled.

mutable_format: bool

For non-multi-planar formats, an image view wrapping this image can have a different format.

For multi-planar formats, an image view wrapping this image can be created from a single plane of the image.

cube_compatible: bool

For 2D images, allows creation of an image view of type Cube or CubeArray.

array_2d_compatible: bool

For 3D images, allows creation of an image view of type Dim2d or Dim2dArray.

block_texel_view_compatible: bool

For images with a compressed format, allows creation of an image view with an uncompressed format, where each texel in the view will correspond to a compressed texel block in the image.

Requires mutable_format.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.