Struct gfx::tex::Descriptor
[−]
pub struct Descriptor { pub kind: Kind, pub levels: u8, pub format: SurfaceType, pub bind: Bind, pub usage: Usage, }
Texture storage descriptor.
Fields
kind: Kind
levels: u8
format: SurfaceType
bind: Bind
usage: Usage
Methods
impl Descriptor
fn to_image_info(&self, mip: u8) -> ImageInfoCommon<()>
Get image info for a given mip.
fn to_raw_image_info(&self, cty: ChannelType, mip: u8) -> ImageInfoCommon<Format>
Get the raw image info for a given mip and a channel type.
Trait Implementations
impl Eq for Descriptor
impl Ord for Descriptor
fn cmp(&self, __arg_0: &Descriptor) -> Ordering
impl PartialEq<Descriptor> for Descriptor
fn eq(&self, __arg_0: &Descriptor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Descriptor) -> bool
This method tests for !=
.
impl PartialOrd<Descriptor> for Descriptor
fn partial_cmp(&self, __arg_0: &Descriptor) -> Option<Ordering>
fn lt(&self, __arg_0: &Descriptor) -> bool
fn le(&self, __arg_0: &Descriptor) -> bool
fn gt(&self, __arg_0: &Descriptor) -> bool
fn ge(&self, __arg_0: &Descriptor) -> bool
impl Hash for Descriptor
impl Copy for Descriptor
impl Clone for Descriptor
fn clone(&self) -> Descriptor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more