DestroyBuffer(BufferID)
Destroy the buffer with the given ID.
阅读时间1 分钟最后更新于 24 天前
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor
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.