Modules§
Structs§
- Helper utility to update
TextureAtlasLayout
on the fly. - An error that occurs when loading a texture from a file.
- Loader for images that can be read by the
image
crate. - Indicates to an
ImageLoader
how anImage
should be sampled. - An index into a
TextureAtlasLayout
, which corresponds to a specific section of a texture. - A builder which is used to create a texture atlas from many individual sprites.
- Stores a map used to lookup the position of a texture in a
TextureAtlas
. This can be used to either use and look up a specific section of a texture, or animate frame-by-frame as a sprite sheet. - Adds support for texture atlases.
- Stores a mapping from sub texture handles to the related area index.
Enums§
- How edges should be handled in texture addressing.
- Comparison function used for depth and stencil operations.
- Texel mixing mode when sampling between texels.
- Used in
Image
, this determines what image sampler to use when rendering. The default setting,ImageSampler::Default
, will read the sampler from theImagePlugin
at setup. Setting this toImageSampler::Descriptor
will override the global default descriptor for thisImage
. - Color variation to use when the sampler addressing mode is
ImageAddressMode::ClampToBorder
. - The type of a raw image buffer.
- Errors that occur while converting an
Image
into aDynamicImage
- An error that occurs when accessing specific pixels in a texture.
- An error that occurs when loading a texture.
- Texture data need to be transcoded from this format for use with
wgpu
.
Constants§
Traits§
- Extends the wgpu
TextureFormat
with information about the pixel. - Used to calculate the volume of an item.