Need to track DeviceAddress for secure ref-counting
As mentioned in the PR here, we need to track device addresses from functions like getBufferDeviceAddress()
. Otherwise it might happen that a buffer gets destroyed and its memory freed because of the handles ref-counting despite its address being in use. In worst case this can corrupt memory accesses and reset a GPU.
So the framework should protect users/developers from such occurrences by providing a new type of handle for device addresses.