title: Is it good to use a buffer as shader storage buffer and then as atomic counter buffer?
body: <p>I'm using an atomic counter which has it's own buffer and i want to clear that counter in some other pass. So is it good to bind the buffer as shader storage buffer to clear it and then, in a second pass use it as atomic counter buffer? Also i would like to ask if it's even ok to use the same buffer as shader storage buffer and as atomic counter buffer at the same time in the same shader, let's say, 4 bytes at the start are intended only for the atomic counter, while in the same buffer is other data which is read/modified.</p>