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
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
sourceimpl Clone for ImageFormatProperties
impl Clone for ImageFormatProperties
sourcefn clone(&self) -> ImageFormatProperties
fn clone(&self) -> ImageFormatProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ImageFormatProperties
impl Debug for ImageFormatProperties
sourceimpl From<ImageFormatProperties> for ImageFormatProperties
impl From<ImageFormatProperties> for ImageFormatProperties
sourcefn from(props: ImageFormatProperties) -> Self
fn from(props: ImageFormatProperties) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more