Crate bevy_image

Source

Modules§

prelude

Structs§

CompressedImageFormats
DynamicTextureAtlasBuilder
Helper utility to update TextureAtlasLayout on the fly.
FileTextureError
An error that occurs when loading a texture from a file.
Image
ImageLoader
Loader for images that can be read by the image crate.
ImageLoaderSettings
ImageSamplerDescriptor
Indicates to an ImageLoader how an Image should be sampled.
TextureAtlas
An index into a TextureAtlasLayout, which corresponds to a specific section of a texture.
TextureAtlasBuilder
A builder which is used to create a texture atlas from many individual sprites.
TextureAtlasLayout
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.
TextureAtlasPlugin
Adds support for texture atlases.
TextureAtlasSources
Stores a mapping from sub texture handles to the related area index.

Enums§

DataFormat
DynamicTextureAtlasBuilderError
ImageAddressMode
How edges should be handled in texture addressing.
ImageCompareFunction
Comparison function used for depth and stencil operations.
ImageFilterMode
Texel mixing mode when sampling between texels.
ImageFormat
ImageFormatSetting
ImageLoaderError
ImageSampler
Used in Image, this determines what image sampler to use when rendering. The default setting, ImageSampler::Default, will read the sampler from the ImagePlugin at setup. Setting this to ImageSampler::Descriptor will override the global default descriptor for this Image.
ImageSamplerBorderColor
Color variation to use when the sampler addressing mode is ImageAddressMode::ClampToBorder.
ImageType
The type of a raw image buffer.
IntoDynamicImageError
Errors that occur while converting an Image into a DynamicImage
TextureAccessError
An error that occurs when accessing specific pixels in a texture.
TextureAtlasBuilderError
TextureError
An error that occurs when loading a texture.
TranscodeFormat
Texture data need to be transcoded from this format for use with wgpu.

Constants§

SAMPLER_ASSET_INDEX
TEXTURE_ASSET_INDEX

Traits§

BevyDefault
TextureFormatPixelInfo
Extends the wgpu TextureFormat with information about the pixel.
Volume
Used to calculate the volume of an item.

Functions§

ktx2_buffer_to_image
ktx2_dfd_to_texture_format
ktx2_format_to_texture_format
ktx2_get_texture_format

Type Aliases§

TextureAtlasBuilderResult