RadeonRaysContext.DestroyBuffer

Declaration

public void DestroyBuffer(LightTransport.BufferID id);

Parameters

id ID of the buffer to destroy.

Description

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.


Did you find this page useful? Please give it a rating: