Skip to main content

Module compute

Module compute 

Source
Expand description

GPU Compute Pipeline for Proof Engine.

Abstracts over GPU compute shaders for:

  • 100K+ particle simulation (position/velocity integration on GPU)
  • Compute shader dispatch with SSBO (Shader Storage Buffer Objects)
  • Double-buffered state for ping-pong GPU updates
  • Indirect draw command generation from compute results
  • GPU particle sorting (bitonic sort compute shader)
  • Force field evaluation on the GPU
  • Fluid simulation compute passes

Structs§

BufferId
ComputePassDesc
Descriptor for a single compute dispatch pass.
ComputePassId
ComputePipeline
Manages a set of compute passes as a pipeline.
ComputePresets
GpuAttractor
GpuBufferDesc
GpuParticle
CPU-side mirror of the GPU particle struct. #[repr(C)] to match GLSL std430 layout.
GpuParticleSystem
Complete GPU particle system configuration and state.
IndirectDrawCommand
PipelineId
ResourceHandle
Resource handle used by render_graph.rs.

Enums§

BufferUsage
ComputeUniform
MemoryBarrier

Constants§

BITONIC_SORT_GLSL
Bitonic sort for GPU particle depth ordering.
FLUID_ADVECT_GLSL
Fluid simulation velocity advection compute pass.
PARTICLE_COUNT_GLSL
Indirect draw generation — count alive particles and build draw command.
PARTICLE_EMIT_GLSL
Particle emit compute shader — spawns new particles from dead list.
PARTICLE_INTEGRATE_GLSL
Particle integration compute shader (GLSL 4.30+).