private void SetupNextBufferPool() { currentBufferPoolIndex++; if (currentBufferPoolIndex >= bufferPools.Count) { bufferPools.Add(currentBufferPool = BufferPool.New(graphicsDevice, 1024 * 1024)); } else { currentBufferPool = bufferPools[currentBufferPoolIndex]; } }
private void SetupNextBufferPool() { Flush(); currentBufferPoolIndex++; if (currentBufferPoolIndex >= bufferPools.Count) { bufferPools.Add(currentBufferPool = BufferPool.New(allocator, graphicsDevice, 1024 * 1024)); } else { currentBufferPool = bufferPools[currentBufferPoolIndex]; } currentBufferPool.Map(commandList); }