Struct gfx_core::tex::Descriptor [] [src]

pub struct Descriptor {
    pub kind: Kind,
    pub levels: Level,
    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: Level) -> NewImageInfo

Get image info for a given mip.

fn to_raw_image_info(&self, cty: ChannelType, mip: Level) -> RawImageInfo

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

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: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialOrd 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 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