Struct screen_13::driver::image::ImageSubresource
source · pub struct ImageSubresource {
pub array_layer_count: Option<u32>,
pub aspect_mask: ImageAspectFlags,
pub base_array_layer: u32,
pub base_mip_level: u32,
pub mip_level_count: Option<u32>,
}Expand description
Describes a subset of an image.
Fields§
§array_layer_count: Option<u32>The number of layers for which this subset applies.
aspect_mask: ImageAspectFlagsThe portion of the image for which this subset applies.
base_array_layer: u32The first array layer for which this subset applies.
base_mip_level: u32The first mip level for which this subset applies.
mip_level_count: Option<u32>The number of mip levels for which this subset applies.
Trait Implementations§
source§impl Clone for ImageSubresource
impl Clone for ImageSubresource
source§fn clone(&self) -> ImageSubresource
fn clone(&self) -> ImageSubresource
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 ImageSubresource
impl Debug for ImageSubresource
source§impl From<ImageSubresource> for Subresource
impl From<ImageSubresource> for Subresource
source§fn from(subresource: ImageSubresource) -> Self
fn from(subresource: ImageSubresource) -> Self
Converts to this type from the input type.
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 PartialEq<ImageSubresource> for ImageSubresource
impl PartialEq<ImageSubresource> for ImageSubresource
source§fn eq(&self, other: &ImageSubresource) -> bool
fn eq(&self, other: &ImageSubresource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.