Expand description
Downsampling of textures to produce mipmap levels.
Currently, this module only supports generation of hierarchical Z buffers for occlusion culling. It’s marked experimental because the shader is designed only for power-of-two texture sizes and is slightly incorrect for non-power-of-two depth buffer sizes.
Structs§
- Stores a placeholder texture that can be bound to a depth pyramid binding if no depth pyramid is needed.
- The nodes that produce a hierarchical Z-buffer, also known as a depth pyramid.
- A single depth downsample pipeline.
- Uniquely identifies a configuration of the downsample depth shader.
- Stores all depth buffer downsampling pipelines.
- A plugin that allows Bevy to repeatedly downsample textures to create mipmaps.
- Stores a hierarchical Z-buffer for a view, which is a series of mipmaps useful for efficient occlusion culling.
- The bind group that we use to attach the depth buffer and depth pyramid for a view to the
downsample_depth.wgsl
shader.
Constants§
- The maximum number of mip levels that we can produce.
- Identifies the
downsample_depth.wgsl
shader.
Functions§
- Creates a placeholder texture that can be bound to a depth pyramid binding if no depth pyramid is needed.
- Creates depth pyramids for views that have occlusion culling enabled.