---
id: "atomic-fixed-point-compute-point-rasterization"
title: "Compute-Shader Atomic Fixed-Point Sub-Pixel Point Rasterization"
aliases: [compute point rasterization, atomic software point splatting, fixed-point compute point accumulation]
domain: "performance"
stage: "performance"
realtime: "realtime"
platforms: [webgpu, desktop-gpu, cuda]
year_introduced: 2021
inputs: [point-cloud, particles, depth, camera-poses]
outputs: [hdr-image, depth]
style: "both"
dynamic: "dynamic"
cost: "cheap"
authority: "Schütz et al., 2021"
url: "https://texelatlas.vercel.app/t/atomic-fixed-point-compute-point-rasterization/"
sources_verified_at: "2026-11-30"
---
# Compute-Shader Atomic Fixed-Point Sub-Pixel Point Rasterization (Schütz et al., 2021)

> Bypasses hardware primitive rasterization by projecting points or sub-pixel particles in a compute shader and writing depth-tested colors or fixed-point additive radiance directly into a screen-sized storage buffer using GPU atomics.

## Reach for it when

- drawing millions of tiny 1-pixel points or particles bottlenecks hardware rasterizer
- avoid 2x2 pixel quad overshading waste on dense lidar or spore point clouds
- software rasterize sub-pixel points in compute with lock-free depth testing
- pack depth and color into 64-bit atomics for fast compute point visibility
- composite massive compute-driven particle fields cleanly against scene depth

## How it works

Hardware graphics pipelines are optimized for multi-pixel triangles; feeding them millions of single-pixel points or sub-pixel dust particles wastes 2×2 pixel-quad shader lanes and bottlenecks fixed-function primitive assembly. Compute-shader software point rasterization sidesteps the raster pipeline altogether by running one compute thread per point.

Each thread transforms its point into clip space, frustum-culls it, and computes the integer pixel coordinate `(x, y)` in a flat screen-sized `uint32` or `uint64` storage buffer. Two atomic accumulation variants serve different visual regimes:

- **Opaque point clouds**: pack quantized depth in the upper bits and color or point ID in the lower bits of a 64-bit integer (or use early depth-buffer rejection followed by `atomicMin` on depth), resolving the nearest point per pixel up to an order of magnitude faster than `GL_POINTS`.
- **Additive / translucent micro-particles**: test against the scene depth buffer, convert linear RGB radiance to **fixed-point unsigned integers** (e.g., 16 fractional bits per channel to preserve dim colors), and accumulate via `atomicAdd` into RGB storage channels, yielding deterministic, order-independent energy conservation.

A fullscreen resolve pass unpacks the storage buffer into the final HDR framebuffer and clears it for the next frame.

## When to use it

Choose it when rendering millions of lidar points, dense particle clouds, or tiny single-pixel spores/sparks where hardware quad-overshading and primitive setup dominate frame time.

Prefer [gpu-particle-systems](gpu-particle-systems) using instanced billboard quads whenever particles grow larger than a few pixels or require textured soft sprites and depth-of-field bokeh. Prefer [nanite-virtualized-geometry](nanite-virtualized-geometry) for dense connected triangle surfaces. Prefer [chaotic-attractor-density-rendering](chaotic-attractor-density-rendering) specifically for iterative strange-attractor histogram accumulation.

## Cost

cheap — Schütz et al. (2021, 2022) report rendering hundreds of millions to over 1 billion points in real time on desktop GPUs, substantially outperforming hardware GL_POINTS; performance depends on memory coherence and atomic contention.
Measured GPU Weight: 145.24× baseline (extreme) — 4.7784 ms median / 4.8419 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 153.47× baseline (extreme) — 2.4402 ms median (1.96× faster on L4).
Ampere A100 scaling: 108.84× baseline (extreme) — 3.1345 ms median (1.52× faster on A100).

## Failure modes

- Severe atomic contention stalls when millions of points project onto the exact same pixel (e.g., distant dense clusters without LOD or Morton ordering)
- Fixed-point 32-bit additive accumulators can overflow and wrap around if extreme particle densities stack without clamping or rescaling
- Points larger than 1–2 pixels lose efficiency rapidly compared to hardware triangle rasterization and appear as sparse pinholes up close
- 64-bit integer atomics are unavailable in core WebGPU WGSL, requiring split 32-bit depth/color passes or additive fixed-point RGB channels

## Dataflow

- Inputs: point-cloud, particles, depth, camera-poses
- Outputs: hdr-image, depth
- Platforms: webgpu, desktop-gpu, cuda

## Presets

### Atomic Fixed-Point Compute Point Rasterization — hardware 2x2 quad overdraw waste (left) vs sub-pixel fixed-point atomic radiance cloud (right) (glsl-fragment; rendered 2026-11-30)

```json
{
  "P_DENSITY": 1,
  "P_EXPOSURE": 1.15,
  "P_SPIN": 0.55,
  "P_SPLIT": 0.48
}
```

```glsl
const float P_DENSITY = 1.00; // P Point Density [0.4, 1.6, 0.05]
const float P_EXPOSURE = 1.15; // P Additive Radiance [0.4, 2.2, 0.05]
const float P_SPIN = 0.55; // P Orbit Speed [0.0, 1.8, 0.05]
const float P_SPLIT = 0.48; // P 2x2 Quad / Atomic [0.0, 1.0, 0.02]

vec2 rot2(vec2 p, float a) {
  float c = cos(a);
  float s = sin(a);
  return vec2(c * p.x - s * p.y, s * p.x + c * p.y);
}

vec3 aces(vec3 x) {
  x = max(x, 0.0);
  return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}

void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
  float screenX = fragCoord.x / max(iResolution.x, 1.0);
  float split = clamp(P_SPLIT, 0.0, 1.0);
  float dens = clamp(P_DENSITY, 0.35, 1.8);
  float expo = clamp(P_EXPOSURE, 0.3, 2.5);
  float t = iTime * max(P_SPIN, 0.0);

  vec3 bg = mix(vec3(0.02, 0.03, 0.06), vec3(0.06, 0.09, 0.16), smoothstep(-0.5, 0.5, uv.y));
  // Subtle screen-space compute tile grid (8x8 workgroup overlay on right, 2x2 pixel-quad grid on left)
  float quadGrid = step(0.86, max(fract(fragCoord.x * 0.125), fract(fragCoord.y * 0.125)));
  vec3 col = bg + vec3(0.04, 0.07, 0.12) * quadGrid * 0.45;

  // Project 120 3D points along a rotating trefoil torus-knot particle stream
  vec3 atomicAcc = vec3(0.0);
  float quadHits = 0.0;
  float zNearest = 10.0;
  vec3 nearestCol = vec3(0.0);

  // Quantized 2x2 hardware quad cell for left side overdraw-waste demonstration
  vec2 quadUv = (floor(fragCoord / 4.0) * 4.0 + 2.0 - 0.5 * iResolution.xy) / iResolution.y;

  for (int i = 0; i < 120; i++) {
    float fi = float(i);
    float u = (fi / 120.0) * 6.2831853;
    float rMaj = 0.34 + 0.13 * cos(3.0 * u + t * 0.4);
    vec3 p3 = vec3(
      rMaj * cos(2.0 * u),
      0.16 * sin(3.0 * u) + 0.07 * sin(fi * 7.3),
      rMaj * sin(2.0 * u)
    );
    // Add radial sub-pixel dust halo offset
    p3 += vec3(cos(fi * 19.7), sin(fi * 13.1), cos(fi * 29.3)) * 0.055;
    p3.xz = rot2(p3.xz, t * 0.65);
    p3.yz = rot2(p3.yz, 0.42 + 0.15 * sin(t * 0.5));

    float zCam = 1.65 - p3.z;
    vec2 proj = p3.xy / max(zCam * 0.72, 0.25);

    vec3 ptCol = mix(vec3(0.16, 0.78, 1.0), vec3(1.0, 0.52, 0.18), 0.5 + 0.5 * sin(u * 2.0 + p3.y * 4.0));
    ptCol *= 0.8 + 0.4 * exp(-max(zCam - 1.0, 0.0));

    if (screenX < split) {
      // Left: Hardware rasterizer forces 2x2 pixel-quad invocations even for 1px points -> overdraw heatmap!
      vec2 dq = abs(quadUv - proj);
      if (max(dq.x, dq.y) < 0.022 * dens) {
        quadHits += 1.0;
        if (zCam < zNearest) {
          zNearest = zCam;
          nearestCol = ptCol;
        }
      }
    } else {
      // Right: Compute-shader atomic fixed-point additive radiance + depth-packed crisp sub-pixel splat
      float d = length(uv - proj);
      float core = exp(-(d * d) / max(0.00016 * dens * dens, 1e-6));
      float halo = exp(-(d * d) / max(0.0014 * dens * dens, 1e-5)) * 0.22;
      // Simulate fixed-point 16-bit integer atomicAdd quantization steps subtly
      vec3 contrib = ptCol * (core + halo) * expo;
      atomicAcc += floor(contrib * 64.0 + 0.5) / 64.0;
    }
  }

  if (screenX < split) {
    // Visualize wasted 2x2 helper-lane quad coverage (amber/magenta heat for overlapping quads)
    if (quadHits > 0.5) {
      float heat = clamp(quadHits / 6.0, 0.0, 1.0);
      vec3 overdrawCol = mix(vec3(0.20, 0.55, 0.95), vec3(1.0, 0.24, 0.36), heat);
      // Show active pixel (1 of 4) vs 3 wasted helper lanes inside each 2x2 quad
      vec2 subQ = mod(floor(fragCoord / 2.0), 2.0);
      float helperLane = step(0.5, subQ.x + subQ.y);
      col = mix(nearestCol * 1.15, overdrawCol * 0.55, helperLane * 0.72);
    }
  } else {
    col += atomicAcc * 0.65;
  }

  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
  col = mix(col, vec3(0.95, 0.98, 1.0), sep);
  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}
```

Attribution: MIT — written for this index.

## Combines with

- [GPU particle systems](https://texelatlas.vercel.app/t/gpu-particle-systems.md): Renders GPU-simulated micro-particles directly from storage buffers with order-independent fixed-point atomic radiance accumulation.
- [Scatter-as-gather bokeh depth of field](https://texelatlas.vercel.app/t/depth-of-field-scatter-as-gather.md): Splits in-focus sub-pixel particles onto the fast atomic compute path while sending larger defocused bokeh sprites to normal rasterization.

## Combination ideas

- [Meshlet foliage with compute-rasterized atomic spores](https://texelatlas.vercel.app/ideas/meshlet-foliage-atomic-spore-raster/)

## Sources

1. [primary] Markus Schütz, Bernhard Kerbl, Michael Wimmer (2021) Rendering Point Clouds with Compute Shaders and Vertex Order Optimization. Computer Graphics Forum. https://doi.org/10.1111/cgf.14345 (verified via crossref on 2026-11-30)
2. [primary] Markus Schütz, Bernhard Kerbl, Michael Wimmer (2022) Software Rasterization of 2 Billion Points in Real Time. Proceedings of the ACM on Computer Graphics and Interactive Techniques. https://doi.org/10.1145/3543863 (verified via crossref on 2026-11-30)
3. [implementation] m-schuetz (2019) m-schuetz/compute_rasterizer. https://github.com/m-schuetz/compute_rasterizer License: NOASSERTION. (verified via github on 2026-11-30)
4. [implementation] mrdoob (2026) mrdoob/codevember-2026. https://github.com/mrdoob/codevember-2026 License: MIT. (verified via github on 2026-11-30)

## Cite this entry

Texel. "Compute-Shader Atomic Fixed-Point Sub-Pixel Point Rasterization." https://texelatlas.vercel.app/t/atomic-fixed-point-compute-point-rasterization/ (accessed 2026-12-01).
