Expand description
Voxel post-processing effects
These effects let us set up a simple rendering pipeline:
- Start with
GeometryPixelbuffers (16 bytes per pixel, stored on the GPU). - Merge and denoise a set of buffers into a single image containing
PackedVoxeldata (normals, depth, and source image index packed into 8 bytes per pixel). - Apply shading to a
PackedVoxelbuffer, producing an RGBA image buffer
Structs§
- Context
- WGPU context for applying various effects
- Image
Size Mismatch - Type indicating an image size mismatch
- Merge
Settings - Settings for image merging pass
- Merge
Voxel Buffer Tag - Buffer tag for on-GPU merged (
PackedVoxel) images - Merge
Workspace - Handle to a set of buffers used when merging images
- Packed
Voxel - Packed voxel structure used on the GPU
- Shade
Workspace - Handle to a set of buffers used when shading images
- Shaded
Image Tag - Buffer tag for on-GPU shaded (RGBA) images
- Ssao
Blurred Buffer Tag - Tag for a blurred SSAO occlusion buffer
- Ssao
RawBuffer Tag - Tag for a raw SSAO occlusion buffer
- Ssao
Workspace - Handle to a set of buffers used when running an SSAO pass
Enums§
- Color
Error - Error returned when submitting a color evaluation operation
- Heightmap
Error - Error returned when submitting a heightmap operation
- Merge
Error - Error returned when submitting a merge operation
- Shade
Error - Error returned when submitting a shade operation
- Ssao
Error - Error returned when submitting an SSAO operation
Type Aliases§
- Color
Workspace - Workspace for evaluating color expressions