Beware the behaviour of writes will not be consistent between vendors or shader stages, and may be surprising.