Skip to main content

Module effects

Module effects 

Source
Expand description

Voxel post-processing effects

These effects let us set up a simple rendering pipeline:

  • Start with GeometryPixel buffers (16 bytes per pixel, stored on the GPU).
  • Merge and denoise a set of buffers into a single image containing PackedVoxel data (normals, depth, and source image index packed into 8 bytes per pixel).
  • Apply shading to a PackedVoxel buffer, producing an RGBA image buffer

Structs§

Context
WGPU context for applying various effects
ImageSizeMismatch
Type indicating an image size mismatch
MergeSettings
Settings for image merging pass
MergeVoxelBufferTag
Buffer tag for on-GPU merged (PackedVoxel) images
MergeWorkspace
Handle to a set of buffers used when merging images
PackedVoxel
Packed voxel structure used on the GPU
ShadeWorkspace
Handle to a set of buffers used when shading images
ShadedImageTag
Buffer tag for on-GPU shaded (RGBA) images
SsaoBlurredBufferTag
Tag for a blurred SSAO occlusion buffer
SsaoRawBufferTag
Tag for a raw SSAO occlusion buffer
SsaoWorkspace
Handle to a set of buffers used when running an SSAO pass

Enums§

ColorError
Error returned when submitting a color evaluation operation
HeightmapError
Error returned when submitting a heightmap operation
MergeError
Error returned when submitting a merge operation
ShadeError
Error returned when submitting a shade operation
SsaoError
Error returned when submitting an SSAO operation

Type Aliases§

ColorWorkspace
Workspace for evaluating color expressions