Struct vulkano::image::ImageSubresourceLayers
source · pub struct ImageSubresourceLayers {
pub aspects: ImageAspects,
pub mip_level: u32,
pub array_layers: Range<u32>,
}
Expand description
One or more subresources of an image, spanning a single mip level, that should be accessed by a command.
Fields§
§aspects: ImageAspects
Selects the aspects that will be included.
The value must not be empty, and must not include any of the memory_plane
aspects.
The color
aspect cannot be selected together any of with the plane
aspects.
mip_level: u32
Selects mip level that will be included.
array_layers: Range<u32>
Selects the range of array layers that will be included.
The range must not be empty.
Implementations§
source§impl ImageSubresourceLayers
impl ImageSubresourceLayers
sourcepub fn from_parameters(format: Format, array_layers: u32) -> Self
pub fn from_parameters(format: Format, array_layers: u32) -> Self
Returns an ImageSubresourceLayers
from the given image parameters, covering the first
mip level of the image. All aspects of the image are selected, or plane0
if the image
is multi-planar.
Trait Implementations§
source§impl Clone for ImageSubresourceLayers
impl Clone for ImageSubresourceLayers
source§fn clone(&self) -> ImageSubresourceLayers
fn clone(&self) -> ImageSubresourceLayers
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 ImageSubresourceLayers
impl Debug for ImageSubresourceLayers
source§impl From<ImageSubresourceLayers> for ImageSubresourceLayers
impl From<ImageSubresourceLayers> for ImageSubresourceLayers
source§fn from(val: ImageSubresourceLayers) -> Self
fn from(val: ImageSubresourceLayers) -> Self
Converts to this type from the input type.
source§impl From<ImageSubresourceLayers> for ImageSubresourceRange
impl From<ImageSubresourceLayers> for ImageSubresourceRange
source§fn from(val: ImageSubresourceLayers) -> Self
fn from(val: ImageSubresourceLayers) -> Self
Converts to this type from the input type.