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
sourceimpl Clone for ImageSubresource
impl Clone for ImageSubresource
sourcefn clone(&self) -> ImageSubresource
fn clone(&self) -> ImageSubresource
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ImageSubresource
impl Debug for ImageSubresource
sourceimpl From<ImageSubresource> for Subresource
impl From<ImageSubresource> for Subresource
sourcefn from(subresource: ImageSubresource) -> Self
fn from(subresource: ImageSubresource) -> Self
Converts to this type from the input type.
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 PartialEq<ImageSubresource> for ImageSubresource
impl PartialEq<ImageSubresource> for ImageSubresource
sourcefn eq(&self, other: &ImageSubresource) -> bool
fn eq(&self, other: &ImageSubresource) -> bool
impl Copy for ImageSubresource
impl Eq for ImageSubresource
impl StructuralEq for ImageSubresource
impl StructuralPartialEq for ImageSubresource
Auto Trait Implementations
impl RefUnwindSafe for ImageSubresource
impl Send for ImageSubresource
impl Sync for ImageSubresource
impl Unpin for ImageSubresource
impl UnwindSafe for ImageSubresource
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