Struct vulkano::image::ImageFormatInfo
source · [−]pub struct ImageFormatInfo {
pub format: Option<Format>,
pub image_type: ImageType,
pub tiling: ImageTiling,
pub usage: ImageUsage,
pub external_memory_handle_type: Option<ExternalMemoryHandleType>,
pub image_view_type: Option<ImageViewType>,
pub mutable_format: bool,
pub cube_compatible: bool,
pub array_2d_compatible: bool,
pub block_texel_view_compatible: bool,
pub _ne: NonExhaustive,
}
Expand description
The image configuration to query in
PhysicalDevice::image_format_properties
.
Fields
format: Option<Format>
The format
that the image will have.
The default value is None
, which must be overridden.
image_type: ImageType
The dimension type that the image will have.
The default value is ImageType::Dim2d
.
tiling: ImageTiling
The tiling
that the image will have.
The default value is ImageTiling::Optimal
.
usage: ImageUsage
The usage
that the image will have.
The default value is ImageUsage::none()
, which must be overridden.
external_memory_handle_type: Option<ExternalMemoryHandleType>
An external memory handle type that will be imported to or exported from the image.
This is needed to retrieve the
external_memory_properties
value,
and the physical device API version must be at least 1.1 or the
ext_filter_cubic
extension must be
supported on the physical device.
The default value is None
.
image_view_type: Option<ImageViewType>
The image view type that will be created from the image.
This is needed to retrieve the
filter_cubic
and
filter_cubic_minmax
values, and the
ext_filter_cubic
extension must be
supported on the physical device.
The default value is None
.
mutable_format: bool
The mutable_format
that the image will have.
The default value is false
.
cube_compatible: bool
The cube_compatible
that the image will have.
The default value is false
.
array_2d_compatible: bool
The array_2d_compatible
that the image will have.
The default value is false
.
block_texel_view_compatible: bool
The block_texel_view_compatible
that the image will have.
The default value is false
.
_ne: NonExhaustive
Trait Implementations
sourceimpl Clone for ImageFormatInfo
impl Clone for ImageFormatInfo
sourcefn clone(&self) -> ImageFormatInfo
fn clone(&self) -> ImageFormatInfo
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 ImageFormatInfo
impl Debug for ImageFormatInfo
Auto Trait Implementations
impl RefUnwindSafe for ImageFormatInfo
impl Send for ImageFormatInfo
impl Sync for ImageFormatInfo
impl Unpin for ImageFormatInfo
impl UnwindSafe for ImageFormatInfo
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