DestroyBuffer(BufferID)
Destroy the buffer with the given ID.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor.CoreModule
public void DestroyBuffer(BufferID id)
Parameters
ID of the buffer to destroy.
Remarks
using UnityEngine.LightTransport;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.