id | ID of the buffer to destroy. |
Destroy the buffer with the given ID.
IDeviceContext ctx = new RadeonRaysContext(); ctx.Initialize(); const int sizeInBytes = 4; var bufferID = ctx.CreateBuffer(sizeInBytes); ctx.DestroyBuffer(bufferID); ctx.Dispose();
How to destroy a buffer.