Struct screen_13::driver::image::ImageViewInfo
source · #[non_exhaustive]pub struct ImageViewInfo {
pub array_layer_count: Option<u32>,
pub aspect_mask: ImageAspectFlags,
pub base_array_layer: u32,
pub base_mip_level: u32,
pub fmt: Format,
pub mip_level_count: Option<u32>,
pub ty: ImageType,
}
Expand description
Information used to reinterpret an existing Image
instance.
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.array_layer_count: Option<u32>
The number of layers that will be contained in the view.
The default value of None
equates to vk::REMAINING_ARRAY_LAYERS
.
aspect_mask: ImageAspectFlags
The portion of the image that will be contained in the view.
base_array_layer: u32
The first array layer that will be contained in the view.
base_mip_level: u32
The first mip level that will be contained in the view.
fmt: Format
The format and type of the texel blocks that will be contained in the view.
mip_level_count: Option<u32>
The number of mip levels that will be contained in the view.
The default value of None
equates to vk::REMAINING_MIP_LEVELS
.
ty: ImageType
The basic dimensionality of the view.
Implementations§
source§impl ImageViewInfo
impl ImageViewInfo
sourcepub const fn new(fmt: Format, ty: ImageType) -> ImageViewInfo
pub const fn new(fmt: Format, ty: ImageType) -> ImageViewInfo
Specifies a default view with the given fmt
and ty
values.
§Note
Automatically sets aspect_mask
to a suggested value.
sourcepub fn to_builder(self) -> ImageViewInfoBuilder
pub fn to_builder(self) -> ImageViewInfoBuilder
Converts a ImageViewInfo
into a ImageViewInfoBuilder
.
Trait Implementations§
source§impl Clone for ImageViewInfo
impl Clone for ImageViewInfo
source§fn clone(&self) -> ImageViewInfo
fn clone(&self) -> ImageViewInfo
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 ImageViewInfo
impl Debug for ImageViewInfo
source§impl From<ImageInfo> for ImageViewInfo
impl From<ImageInfo> for ImageViewInfo
source§impl From<ImageViewInfo> for ImageSubresource
impl From<ImageViewInfo> for ImageSubresource
source§fn from(info: ImageViewInfo) -> Self
fn from(info: ImageViewInfo) -> Self
Converts to this type from the input type.
source§impl From<ImageViewInfo> for ViewType
impl From<ImageViewInfo> for ViewType
source§fn from(info: ImageViewInfo) -> Self
fn from(info: ImageViewInfo) -> Self
Converts to this type from the input type.
source§impl From<ImageViewInfoBuilder> for ImageViewInfo
impl From<ImageViewInfoBuilder> for ImageViewInfo
source§fn from(info: ImageViewInfoBuilder) -> Self
fn from(info: ImageViewInfoBuilder) -> Self
Converts to this type from the input type.
source§impl Hash for ImageViewInfo
impl Hash for ImageViewInfo
source§impl PartialEq for ImageViewInfo
impl PartialEq for ImageViewInfo
source§fn eq(&self, other: &ImageViewInfo) -> bool
fn eq(&self, other: &ImageViewInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ImageViewInfo
impl Eq for ImageViewInfo
impl StructuralPartialEq for ImageViewInfo
Auto Trait Implementations§
impl RefUnwindSafe for ImageViewInfo
impl Send for ImageViewInfo
impl Sync for ImageViewInfo
impl Unpin for ImageViewInfo
impl UnwindSafe for ImageViewInfo
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