/// <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);
        }
示例#2
0
 public static void Release(RTHandle rth)
 {
     s_DefaultInstance.Release(rth);
 }