Struct wgpu_core::track::texture::TextureSelector
source · pub struct TextureSelector {
pub mips: Range<u32>,
pub layers: Range<u32>,
}
Expand description
Specifies a particular set of subresources in a texture.
Fields§
§mips: Range<u32>
§layers: Range<u32>
Trait Implementations§
source§impl Borrow<TextureSelector> for Texture
impl Borrow<TextureSelector> for Texture
source§fn borrow(&self) -> &TextureSelector
fn borrow(&self) -> &TextureSelector
Immutably borrows from an owned value. Read more
source§impl Clone for TextureSelector
impl Clone for TextureSelector
source§fn clone(&self) -> TextureSelector
fn clone(&self) -> TextureSelector
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 TextureSelector
impl Debug for TextureSelector
source§impl From<TextureSelector> for TextureInitRange
impl From<TextureSelector> for TextureInitRange
source§fn from(selector: TextureSelector) -> Self
fn from(selector: TextureSelector) -> Self
Converts to this type from the input type.
source§impl PartialEq for TextureSelector
impl PartialEq for TextureSelector
source§fn eq(&self, other: &TextureSelector) -> bool
fn eq(&self, other: &TextureSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TextureSelector
impl StructuralPartialEq for TextureSelector
Auto Trait Implementations§
impl Freeze for TextureSelector
impl RefUnwindSafe for TextureSelector
impl Send for TextureSelector
impl Sync for TextureSelector
impl Unpin for TextureSelector
impl UnwindSafe for TextureSelector
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.