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.