count | Number of elements in the buffer. |
stride | Stride of the buffer in bytes. |
BufferID ID of the newly created buffer.
Create a new buffer for a number of elements with a given stride.
IDeviceContext ctx = new RadeonRaysContext(); ctx.Initialize(); const int numberOfElements = 4; const int strideInBytes = 4; var bufferID = ctx.CreateBuffer(numberOfElements, strideInBytes); ctx.DestroyBuffer(bufferID); ctx.Dispose();
How to create a buffer.