Struct vulkano::image::ImageFormatProperties
source · #[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 image extent.
max_mip_levels: u32
The maximum number of mip 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§
source§impl Clone for ImageFormatProperties
impl Clone for ImageFormatProperties
source§fn clone(&self) -> ImageFormatProperties
fn clone(&self) -> ImageFormatProperties
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 Debug for ImageFormatProperties
impl Debug for ImageFormatProperties
source§impl From<ImageFormatProperties> for ImageFormatProperties
impl From<ImageFormatProperties> for ImageFormatProperties
source§fn from(props: ImageFormatProperties) -> Self
fn from(props: ImageFormatProperties) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ImageFormatProperties
impl Send for ImageFormatProperties
impl Sync for ImageFormatProperties
impl Unpin for ImageFormatProperties
impl UnwindSafe for ImageFormatProperties
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