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
array_layer_count: Option<u32>The number of layers that will be contained in the view.
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: Option<u32>The number of mip levels that will be contained in the view.
ty: ImageTypeThe basic dimensionality of the view.
Layers in array textures do not count as a dimension for the purposes of the image type.
Implementations
sourceimpl ImageViewInfo
impl ImageViewInfo
sourcepub fn new(format: Format, ty: ImageType) -> ImageViewInfoBuilder
pub fn new(format: Format, ty: ImageType) -> ImageViewInfoBuilder
Specifies a default view with the given fmt and ty values.
Trait Implementations
sourceimpl Clone for ImageViewInfo
impl Clone for ImageViewInfo
sourcefn clone(&self) -> ImageViewInfo
fn clone(&self) -> ImageViewInfo
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 moresourceimpl Debug for ImageViewInfo
impl Debug for ImageViewInfo
sourceimpl From<ImageInfo> for ImageViewInfo
impl From<ImageInfo> for ImageViewInfo
sourceimpl From<ImageViewInfo> for ImageSubresource
impl From<ImageViewInfo> for ImageSubresource
sourcefn from(info: ImageViewInfo) -> Self
fn from(info: ImageViewInfo) -> Self
Converts to this type from the input type.
sourceimpl From<ImageViewInfo> for ViewType
impl From<ImageViewInfo> for ViewType
sourcefn from(info: ImageViewInfo) -> Self
fn from(info: ImageViewInfo) -> Self
Converts to this type from the input type.
sourceimpl From<ImageViewInfoBuilder> for ImageViewInfo
impl From<ImageViewInfoBuilder> for ImageViewInfo
sourcefn from(info: ImageViewInfoBuilder) -> Self
fn from(info: ImageViewInfoBuilder) -> Self
Converts to this type from the input type.
sourceimpl Hash for ImageViewInfo
impl Hash for ImageViewInfo
sourceimpl PartialEq<ImageViewInfo> for ImageViewInfo
impl PartialEq<ImageViewInfo> for ImageViewInfo
sourcefn eq(&self, other: &ImageViewInfo) -> bool
fn eq(&self, other: &ImageViewInfo) -> bool
impl Copy for ImageViewInfo
impl Eq for ImageViewInfo
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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