logo
#[non_exhaustive]
pub struct ImageFormatProperties { pub max_extent: [u32; 3], pub max_mip_levels: u32, pub max_array_layers: u32, pub sample_counts: SampleCounts, pub max_resource_size: DeviceSize, pub external_memory_properties: ExternalMemoryProperties, pub filter_cubic: bool, pub filter_cubic_minmax: bool, }
Expand description

The properties that are supported by a physical device for images of a certain type.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
max_extent: [u32; 3]

The maximum dimensions.

max_mip_levels: u32

The maximum number of mipmap levels.

max_array_layers: u32

The maximum number of array layers.

sample_counts: SampleCounts

The supported sample counts.

max_resource_size: DeviceSize

The maximum total size of an image, in bytes. This is guaranteed to be at least 0x80000000.

external_memory_properties: ExternalMemoryProperties

The properties for external memory. This will be ExternalMemoryProperties::default() if external_handle_type was None.

filter_cubic: bool

When querying with an image view type, whether such image views support sampling with a Cubic mag_filter or min_filter.

filter_cubic_minmax: bool

When querying with an image view type, whether such image views support sampling with a Cubic mag_filter or min_filter, and with a Min or Max reduction_mode.

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

Performs the conversion.

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.