Struct vulkano::image::ImageSubresourceRange
source · pub struct ImageSubresourceRange {
pub aspects: ImageAspects,
pub mip_levels: Range<u32>,
pub array_layers: Range<u32>,
}
Expand description
One or more subresources of an image 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_levels: Range<u32>
Selects the range of the mip levels that will be included.
The range must not be empty.
array_layers: Range<u32>
Selects the range of array layers that will be included.
The range must not be empty.
Implementations§
source§impl ImageSubresourceRange
impl ImageSubresourceRange
sourcepub fn from_parameters(format: Format, mip_levels: u32, array_layers: u32) -> Self
pub fn from_parameters(format: Format, mip_levels: u32, array_layers: u32) -> Self
Returns an ImageSubresourceRange
from the given image parameters, covering the whole
image. If the image is multi-planar, only the color
aspect is selected.
Trait Implementations§
source§impl Clone for ImageSubresourceRange
impl Clone for ImageSubresourceRange
source§fn clone(&self) -> ImageSubresourceRange
fn clone(&self) -> ImageSubresourceRange
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 ImageSubresourceRange
impl Debug for ImageSubresourceRange
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.
source§impl From<ImageSubresourceRange> for ImageSubresourceRange
impl From<ImageSubresourceRange> for ImageSubresourceRange
source§fn from(val: ImageSubresourceRange) -> Self
fn from(val: ImageSubresourceRange) -> Self
Converts to this type from the input type.