Struct gfx::texture::ResourceDesc
source · pub struct ResourceDesc {
pub channel: ChannelType,
pub layer: Option<u16>,
pub min: u8,
pub max: u8,
pub swizzle: Swizzle,
}
Expand description
Texture resource view descriptor.
Fields§
§channel: ChannelType
§layer: Option<u16>
§min: u8
§max: u8
§swizzle: Swizzle
Trait Implementations§
source§impl Clone for ResourceDesc
impl Clone for ResourceDesc
source§fn clone(&self) -> ResourceDesc
fn clone(&self) -> ResourceDesc
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 ResourceDesc
impl Debug for ResourceDesc
source§impl Hash for ResourceDesc
impl Hash for ResourceDesc
source§impl Ord for ResourceDesc
impl Ord for ResourceDesc
source§fn cmp(&self, other: &ResourceDesc) -> Ordering
fn cmp(&self, other: &ResourceDesc) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ResourceDesc> for ResourceDesc
impl PartialEq<ResourceDesc> for ResourceDesc
source§fn eq(&self, other: &ResourceDesc) -> bool
fn eq(&self, other: &ResourceDesc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResourceDesc> for ResourceDesc
impl PartialOrd<ResourceDesc> for ResourceDesc
source§fn partial_cmp(&self, other: &ResourceDesc) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceDesc) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more