Elektrine lite

← Feed

@DaPorkchop_@lemmy.ml

2026-11-12 21:21 UTC

the vertex shader can actually remove vertices, i’ve seen it used in the wild as a way to perform fine-grained geometry culling without access to mesh shaders or the performance hit of geometry shaders. the trick is basically to set any of the vertex output coordinates to NaN. all decent hardware will discard any primitives with NaN coordinates early on during primitive assembly. in fact, this is even officially recommended by AMD in the RDNA performance guide

Replies (1)