Skip to main content

Module mip_generation

Module mip_generation 

Source
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§

DownsampleShaders
A resource that stores the shaders that perform downsampling.
DownsamplingConstants
Constants for the single-pass downsampling shader generated on the CPU and read on the GPU.
MipGenerationJobs
A render-world resource that stores a list of Images that will have mipmaps generated for them.
MipGenerationPhase
The list of Images that will have mipmaps generated for them during a specific phase.
MipGenerationPhaseId
Identifies a phase during which mipmaps will be generated for an image.
MipGenerationPipelines
Stores all render pipelines and bind groups associated with the mipmap generation shader.
MipGenerationPlugin
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.