Skip to main content

Module gpu_marching_cubes

Module gpu_marching_cubes 

Source
Expand description

GPU marching cubes compute pipeline (Phase 17). GPU marching cubes — Phase 17.

Three-pass GPU compute pipeline for isosurface extraction:

  1. Classify — computes case index and triangle count per cell.
  2. Prefix sum — hierarchical exclusive scan to build triangle offsets.
  3. Generate — interpolates vertex positions and normals into a vertex buffer.

The output is drawn with a lightweight Phong render pipeline via draw_indirect.

Structs§

GpuMarchingCubesJob
One GPU marching cubes draw job submitted per frame.
VolumeGpuId
Handle to a volume scalar field uploaded for GPU marching cubes.