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