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.
The default value of None
equates to vk::REMAINING_ARRAY_LAYERS
.
aspect_mask: ImageAspectFlags
The portion of the image for which this subset applies.
base_array_layer: u32
The first array layer for which this subset applies.
base_mip_level: u32
The first mip level for which this subset applies.
mip_level_count: Option<u32>
The number of mip levels for which this subset applies.
The default value of None
equates to vk::REMAINING_MIP_LEVELS
.
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 for ImageSubresource
impl PartialEq 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 ==
.impl Copy for ImageSubresource
impl Eq 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§
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