pub struct ImageViewInfo {
pub array_layer_count: u32,
pub aspect_mask: ImageAspectFlags,
pub base_array_layer: u32,
pub base_mip_level: u32,
pub fmt: Format,
pub mip_level_count: u32,
pub ty: ImageViewType,
}Expand description
Information used to reinterpret an existing Image instance.
Fields§
§array_layer_count: u32The number of layers that will be contained in the view.
The default value is vk::REMAINING_ARRAY_LAYERS.
aspect_mask: ImageAspectFlagsThe portion of the image that will be contained in the view.
base_array_layer: u32The first array layer that will be contained in the view.
base_mip_level: u32The first mip level that will be contained in the view.
fmt: FormatThe format and type of the texel blocks that will be contained in the view.
mip_level_count: u32The number of mip levels that will be contained in the view.
The default value is vk::REMAINING_MIP_LEVELS.
ty: ImageViewTypeThe basic dimensionality of the view.
Implementations§
Source§impl ImageViewInfo
impl ImageViewInfo
Sourcepub const fn new(fmt: Format, ty: ImageViewType) -> ImageViewInfo
pub const fn new(fmt: Format, ty: ImageViewType) -> ImageViewInfo
Specifies a default view with the given fmt and ty values.
§Note
Automatically sets aspect_mask to a suggested value.
Sourcepub fn into_builder(self) -> ImageViewInfoBuilder
pub fn into_builder(self) -> ImageViewInfoBuilder
Converts a ImageViewInfo into a ImageViewInfoBuilder.
Sourcepub fn with_type(self, ty: ImageViewType) -> Self
pub fn with_type(self, ty: ImageViewType) -> Self
Takes this instance and returns it with a newly specified ImageViewType.
Source§impl ImageViewInfo
impl ImageViewInfo
Sourcepub fn from_image_info(info: ImageInfo) -> Result<Self, DriverError>
pub fn from_image_info(info: ImageInfo) -> Result<Self, DriverError>
Creates an image view description from image creation info.
Trait Implementations§
Source§impl Clone for ImageViewInfo
impl Clone for ImageViewInfo
Source§fn clone(&self) -> ImageViewInfo
fn clone(&self) -> ImageViewInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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 ImageSubresourceRange
impl From<ImageViewInfo> for ImageSubresourceRange
Source§fn from(info: ImageViewInfo) -> Self
fn from(info: ImageViewInfo) -> Self
Source§impl From<ImageViewInfoBuilder> for ImageViewInfo
impl From<ImageViewInfoBuilder> for ImageViewInfo
Source§fn from(info: ImageViewInfoBuilder) -> Self
fn from(info: ImageViewInfoBuilder) -> Self
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
self and other values to be equal, and is used by ==.