Struct gfx::device::tex::ImageInfo [] [src]

pub struct ImageInfo {
    pub xoffset: Size,
    pub yoffset: Size,
    pub zoffset: Size,
    pub width: Size,
    pub height: Size,
    pub depth: Size,
    pub format: Format,
    pub mipmap: u8,
}

Describes a subvolume of a texture, which image data can be uploaded into.

Fields

xoffset
yoffset
zoffset
width
height
depth
format

Format of each texel.

mipmap

Which mipmap to select.

Methods

impl ImageInfo

fn new() -> ImageInfo

Create a new ImageInfo, using default values.

Trait Implementations

impl Default for ImageInfo

fn default() -> ImageInfo

Derived Implementations

impl Debug for ImageInfo

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

impl Clone for ImageInfo

fn clone(&self) -> ImageInfo

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

impl Copy for ImageInfo

impl Hash for ImageInfo

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

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

impl PartialOrd for ImageInfo

fn partial_cmp(&self, __arg_0: &ImageInfo) -> Option<Ordering>

fn lt(&self, __arg_0: &ImageInfo) -> bool

fn le(&self, __arg_0: &ImageInfo) -> bool

fn gt(&self, __arg_0: &ImageInfo) -> bool

fn ge(&self, __arg_0: &ImageInfo) -> bool

impl PartialEq for ImageInfo

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

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

impl Ord for ImageInfo

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

impl Eq for ImageInfo