Expand description
Downsampling of textures to produce mipmap levels.
This module implements variations on the AMD FidelityFX single-pass
downsampling shader. It’s used for generating mipmaps for textures
(MipGenerationJobs) and for creating hierarchical Z-buffers (the
experimental::depth module).
See the documentation for MipGenerationJobs and experimental::depth
for more information.
Modules§
- experimental
- Experimental functionality related to mipmap generation.
Structs§
- Downsample
Shaders - A resource that stores the shaders that perform downsampling.
- Downsampling
Constants - Constants for the single-pass downsampling shader generated on the CPU and read on the GPU.
- MipGeneration
Jobs - A render-world resource that stores a list of
Images that will have mipmaps generated for them. - MipGeneration
Phase - The list of
Images that will have mipmaps generated for them during a specific phase. - MipGeneration
Phase Id - Identifies a phase during which mipmaps will be generated for an image.
- MipGeneration
Pipelines - Stores all render pipelines and bind groups associated with the mipmap generation shader.
- MipGeneration
Plugin - A plugin that allows Bevy to repeatedly downsample textures to create mipmaps.
Functions§
- can_
combine_ downsampling_ bind_ groups - Returns true if the current platform can use a single bind group for single-pass downsampling.
- generate_
mips_ for_ phase - Generates mipmaps for all images in a
MipGenerationPhaseId.