[][src]Crate rendy_texture

Texture creation and usage

Re-exports

pub use crate::pixel::Rgba8Unorm;

Modules

image

Module that turns an image into a Texture

palette

Module that generates functions to load a single color into a 1x1 Texture. Which function to use depends on what color space the user is using.

pixel

Typed pixel formats. More information on these can be found here

Structs

Texture

Static image. Can be loaded from various of formats.

TextureBuilder

Generics-free texture builder. Struct for staging data in preparation of building a Texture

Enums

MipLevels

Number of mip levels

Functions

mip_levels_from_dims

Calculate the number of mip levels for a 2D image with given dimensions