Struct gfx::tex::Descriptor [] [src]

pub struct Descriptor {
    pub kind: Kind,
    pub levels: u8,
    pub format: SurfaceType,
    pub bind: Bind,
    pub usage: Usage,
}

Texture storage descriptor.

Fields

kind
levels
format
bind
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

Derived Implementations

impl Debug for Descriptor

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for Descriptor

fn clone(&self) -> Descriptor

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Descriptor

impl Hash for Descriptor

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

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 PartialEq<Descriptor> for Descriptor

fn eq(&self, __arg_0: &Descriptor) -> bool

fn ne(&self, __arg_0: &Descriptor) -> bool

impl Ord for Descriptor

fn cmp(&self, __arg_0: &Descriptor) -> Ordering

impl Eq for Descriptor