文档

Unity Engine

Unity Engine

DestroyBuffer(BufferID)

Destroy the buffer with the given ID.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.