Currently the shaders have a `clamp` for out-of-bounds writes. We should replace those with `if`s, and introduce an atomic flag that the CPU can read back