Struct gfx_texture::Settings [] [src]

pub struct Settings {
    pub force_alpha: bool,
    pub flip_vertical: bool,
    pub convert_gamma: bool,
    pub compress: bool,
    pub generate_mipmap: bool,
}

Texture creation parameters.

Fields

force_alpha

Convert to rgba8.

flip_vertical

Sometimes you need the other way around.

convert_gamma

Treat as sRGB space.

compress

Compress on GPU.

generate_mipmap

Generate mipmap chain.

Methods

impl Settings

fn new() -> Settings

Create default settings.