Struct gfx_hal::image::SubresourceRange [−][src]
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
impl SubresourceRange
[src]
pub fn resolve_level_count(&self, total: Level) -> Level
[src]
Resolve the concrete level count based on the total number of layers in an image.
pub fn resolve_layer_count(&self, total: Layer) -> Layer
[src]
Resolve the concrete layer count based on the total number of layer in an image.
Trait Implementations
impl Clone for SubresourceRange
[src]
fn clone(&self) -> SubresourceRange
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SubresourceRange
[src]
impl Default for SubresourceRange
[src]
fn default() -> SubresourceRange
[src]
impl Eq for SubresourceRange
[src]
impl From<SubresourceLayers> for SubresourceRange
[src]
fn from(sub: SubresourceLayers) -> Self
[src]
impl Hash for SubresourceRange
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SubresourceRange> for SubresourceRange
[src]
fn eq(&self, other: &SubresourceRange) -> bool
[src]
fn ne(&self, other: &SubresourceRange) -> bool
[src]
impl StructuralEq for SubresourceRange
[src]
impl StructuralPartialEq for SubresourceRange
[src]
Auto Trait Implementations
impl RefUnwindSafe for SubresourceRange
[src]
impl Send for SubresourceRange
[src]
impl Sync for SubresourceRange
[src]
impl Unpin for SubresourceRange
[src]
impl UnwindSafe for SubresourceRange
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,