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 PLANE_0
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 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.
source§impl Hash for ImageSubresourceLayers
impl Hash for ImageSubresourceLayers
source§impl PartialEq for ImageSubresourceLayers
impl PartialEq for ImageSubresourceLayers
source§fn eq(&self, other: &ImageSubresourceLayers) -> bool
fn eq(&self, other: &ImageSubresourceLayers) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImageSubresourceLayers
impl StructuralEq for ImageSubresourceLayers
impl StructuralPartialEq for ImageSubresourceLayers
Auto Trait Implementations§
impl RefUnwindSafe for ImageSubresourceLayers
impl Send for ImageSubresourceLayers
impl Sync for ImageSubresourceLayers
impl Unpin for ImageSubresourceLayers
impl UnwindSafe for ImageSubresourceLayers
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