Accurate

If anyone knows where this originates from, credit where it’s due - I didn’t make this. I personally got it from what apparently is a long line of folks in the math lab at the local community college.

  • DaPorkchop_ [any]@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 hours ago

    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