コード例 #1
0
        // Allocate buffers frames and return current frame
        public RTHandleSystem.RTHandle AllocHistoryFrameRT(int id, Func <string, int, RTHandleSystem, RTHandleSystem.RTHandle> allocator)
        {
            const int bufferCount = 2; // Hard-coded for now. Will have to see if this is enough...

            m_HistoryRTSystem.AllocBuffer(id, (rts, i) => allocator(camera.name, i, rts), bufferCount);
            return(m_HistoryRTSystem.GetFrameRT(id, 0));
        }
コード例 #2
0
 // Allocate buffers frames and return current frame
 public RTHandleSystem.RTHandle AllocHistoryFrameRT(int id, Func <string, int, RTHandleSystem, RTHandleSystem.RTHandle> allocator, int bufferCount)
 {
     m_HistoryRTSystem.AllocBuffer(id, (rts, i) => allocator(camera.name, i, rts), bufferCount);
     return(m_HistoryRTSystem.GetFrameRT(id, 0));
 }