Skip to main content

Module geometry

Module geometry 

Source
Expand description

The passes that draw their own geometry into the main target: projected decals, world-space lines, and the GPU particle system.

Structs§

DecalParams
Per-decal uniforms uploaded before each draw. Matches DecalParams in shaders/decal.slang. 160 bytes (two float4x4s, a float4 tint, four scalars).
DecalView
Per-frame view inputs to the projected-decal pass. Matches DecalView in shaders/decal.slang. 144 bytes.
GpuParticle
One particle slot in the pool the simulation kernel writes and the render pair reads. Matches Particle in shaders/particle_types.slang, which spells the same 32 bytes as two float4 lanes.
LineView
Per-frame view inputs to the line pass. Matches LineView in shaders/line.slang. 80 bytes.
ParticleView
Per-frame view inputs to the particle render pass. Matches ParticleView in shaders/particle.slang. 96 bytes.
SkinParams
Per-dispatch parameters for the rt_skin compute kernel, which deforms one skinned object’s bind-pose vertices into the shared deformed buffer the RT acceleration structure traces. Matches SkinParams in rt_skin.slang.