Modules§
Structs§
- Compressed
Image Format Support - For defining which compressed image formats are supported. This will be initialized from available device features
in
finish()of the bevyRenderPlugin, but is left for the user to specify if not using theRenderPlugin, or the WGPU backend. - Compressed
Image Formats - Dynamic
Texture Atlas Builder - Helper utility to update
TextureAtlasLayouton the fly. - File
Texture Error - An error that occurs when loading a texture from a file.
- Image
- An image, optimized for usage in rendering.
- Image
Loader - Loader for images that can be read by the
imagecrate. - Image
Loader Settings - Settings for loading an
Imageusing anImageLoader. - Image
Plugin - Adds the
Imageas an asset and makes sure that they are extracted and prepared for the GPU. - Image
Sampler Descriptor - Indicates to an
ImageLoaderhow anImageshould be sampled. - Serialized
Image - A version of
Imagesuitable for serializing for short-term transfer. - Texture
Atlas - An index into a
TextureAtlasLayout, which corresponds to a specific section of a texture. - Texture
Atlas Builder - A builder which is used to create a texture atlas from many individual sprites.
- Texture
Atlas Layout - 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. - Texture
Atlas Plugin - Adds support for texture atlases.
- Texture
Atlas Sources - Stores a mapping from sub texture handles to the related area index.
Enums§
- Data
Format - Dynamic
Texture Atlas Builder Error - An error produced by
DynamicTextureAtlasBuilderwhen trying to add a new texture to aTextureAtlasLayout. - Image
Address Mode - How edges should be handled in texture addressing.
- Image
Compare Function - Comparison function used for depth and stencil operations.
- Image
Filter Mode - Texel mixing mode when sampling between texels.
- Image
Format - Image
Format Setting - How to determine an image’s format when loading.
- Image
Loader Error - An error when loading an image using
ImageLoader. - Image
Sampler - Used in
Image, this determines what image sampler to use when rendering. The default setting,ImageSampler::Default, will read the sampler from theImagePluginat setup. Setting this toImageSampler::Descriptorwill override the global default descriptor for thisImage. - Image
Sampler Border Color - Color variation to use when the sampler addressing mode is
ImageAddressMode::ClampToBorder. - Image
Type - The type of a raw image buffer.
- Into
Dynamic Image Error - Errors that occur while converting an
Imageinto aDynamicImage - Texture
Access Error - An error that occurs when accessing specific pixels in a texture.
- Texture
Atlas Builder Error - Texture
Error - An error that occurs when loading a texture.
- Transcode
Format - Texture data need to be transcoded from this format for use with
wgpu.
Constants§
- SAMPLER_
ASSET_ INDEX - TEXTURE_
ASSET_ INDEX - TRANSPARENT_
IMAGE_ HANDLE - A handle to a 1 x 1 transparent white image.
Traits§
- Bevy
Default - Trait used to provide default values for Bevy-external types that
do not implement
Default. - Texture
Format Pixel Info - Extends the wgpu
TextureFormatwith information about the pixel. - ToExtents
- Volume
- Used to calculate the volume of an item.
Functions§
- ktx2_
buffer_ to_ image - ktx2_
dfd_ header_ to_ texture_ format - ktx2_
format_ to_ texture_ format - ktx2_
get_ texture_ format