pub struct SubresourceRange {
pub aspects: Aspects,
pub level_start: Level,
pub level_count: Option<Level>,
pub layer_start: Layer,
pub layer_count: Option<Layer>,
}
Expand description
A subset of resources contained within an image.
Fields§
§aspects: Aspects
Included aspects: color/depth/stencil
level_start: Level
First mipmap level in this subresource
level_count: Option<Level>
Number of sequential levels in this subresource.
A value of None
indicates the subresource contains
all of the remaining levels.
layer_start: Layer
First layer in this subresource
layer_count: Option<Layer>
Number of sequential layers in this subresource.
A value of None
indicates the subresource contains
all of the remaining layers.
Implementations§
Source§impl SubresourceRange
impl SubresourceRange
Sourcepub fn resolve_level_count(&self, total: Level) -> Level
pub fn resolve_level_count(&self, total: Level) -> Level
Resolve the concrete level count based on the total number of layers in an image.
Sourcepub fn resolve_layer_count(&self, total: Layer) -> Layer
pub fn resolve_layer_count(&self, total: Layer) -> Layer
Resolve the concrete layer count based on the total number of layer in an image.
Trait Implementations§
Source§impl Clone for SubresourceRange
impl Clone for SubresourceRange
Source§fn clone(&self) -> SubresourceRange
fn clone(&self) -> SubresourceRange
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 SubresourceRange
impl Debug for SubresourceRange
Source§impl Default for SubresourceRange
impl Default for SubresourceRange
Source§fn default() -> SubresourceRange
fn default() -> SubresourceRange
Returns the “default value” for a type. Read more
Source§impl From<SubresourceLayers> for SubresourceRange
impl From<SubresourceLayers> for SubresourceRange
Source§fn from(sub: SubresourceLayers) -> Self
fn from(sub: SubresourceLayers) -> Self
Converts to this type from the input type.
Source§impl Hash for SubresourceRange
impl Hash for SubresourceRange
Source§impl PartialEq for SubresourceRange
impl PartialEq for SubresourceRange
impl Eq for SubresourceRange
impl StructuralPartialEq for SubresourceRange
Auto Trait Implementations§
impl Freeze for SubresourceRange
impl RefUnwindSafe for SubresourceRange
impl Send for SubresourceRange
impl Sync for SubresourceRange
impl Unpin for SubresourceRange
impl UnwindSafe for SubresourceRange
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