How dendenxu/fast-gaussian-rasterization works
Fast Gauss is a PyTorch-compatible, forward-only Gaussian splat rasterizer using CUDA sorting and OpenGL shaders. The main workflow is a caller supplying Gaussian data and raster settings to the compatibility API, which delegates rendering to a shared context; the README describes sorting and graphics-pipeline rasterization, with output either written to a bound framebuffer or returned for offline rendering. Supporting modules cover Gaussian math, spherical harmonics, graphics/EGL setup, and tensor/data utilities. Some context internals and shader-stage wiring are unsampled, so those links are documented rather than asserted as source-level calls.
Main entry points: gsplat_utils.py Render context · __init__.py Rasterizer API · shaders Shader pipeline · gl_utils.py OpenGL setup
Components 19
Rasterizer API
- Raster settings
fast_gauss/__init__.py - Rasterizer API
fast_gauss/__init__.py
Splat rendering
- Render context
fast_gauss/gsplat_utils.py - Depth sorting
fast_gauss/gsplat_utils.py - Shader pipeline
fast_gauss/shaders - Vertex stage
fast_gauss/shaders/dsplat.vert - Geometry stage
fast_gauss/shaders/dsplat.geom - Fragment stage
fast_gauss/shaders/dsplat.frag - Render output
fast_gauss/gsplat_utils.py
Gaussian preparation
- Gaussian transforms
fast_gauss/gaussian_utils.py - Tensor math
fast_gauss/math_utils.py - SH evaluation
fast_gauss/sh_utils.py
Graphics context
- OpenGL setup
fast_gauss/gl_utils.py - EGL context
fast_gauss/egl_utils.py - CUDA memory
fast_gauss/cuda_utils.py
Utilities
- Tensor data tools
fast_gauss/data_utils.py - Mapping helpers
fast_gauss/base_utils.py - Console tools
fast_gauss/console_utils.py
Other components
- Rasterizer caller
Connections 18
- Rasterizer caller → Raster settings: configures
readme.md - Rasterizer caller → Rasterizer API: invokes
readme.md - Rasterizer API → Render context: creates and calls
fast_gauss/__init__.py - Render context → Depth sorting: sorts globally
readme.md - Render context → Shader pipeline: renders through
readme.md - Shader pipeline → Vertex stage: includes stage
- Shader pipeline → Geometry stage: includes stage
- Shader pipeline → Fragment stage: includes stage
- Render context → Render output: writes or returns
fast_gauss/gsplat_utils.py - Render output → Rasterizer caller: returns result
- Gaussian transforms → Tensor math: uses
fast_gauss/gaussian_utils.py - Rasterizer API → Gaussian transforms: precomputes covariance
readme.md - Rasterizer API → SH evaluation: precomputes SH colors
readme.md - Render context → OpenGL setup: uses graphics setup
fast_gauss/gsplat_utils.py - OpenGL setup → EGL context: creates headless context
fast_gauss/gl_utils.py - Render context → CUDA memory: uses interop
readme.md - Tensor data tools → Console tools: imports helpers
fast_gauss/data_utils.py - OpenGL setup → Console tools: imports helpers
fast_gauss/gl_utils.py