/// <summary> /// Release a buffer /// </summary> /// <param name="bufferId">Id of the buffer that needs to be released.</param> public void ReleaseBuffer(int bufferId) { if (m_RTHandles.TryGetValue(bufferId, out var buffers)) { foreach (var rt in buffers) { m_RTHandleSystem.Release(rt); } } m_RTHandles.Remove(bufferId); }
public static void Release(RTHandle rth) { s_DefaultInstance.Release(rth); }