Exemplo n.º 1
0
        public override CommandBuffer CreateCommandBuffer()
        {
            D3D11CommandBuffer commandBuffer;

            if (_completedBuffers.Count > 0)
            {
                commandBuffer = _completedBuffers[0];
                _completedBuffers.RemoveAt(0);
            }
            else
            {
                commandBuffer = new D3D11CommandBuffer(this, _nativeDevice);
            }

            return(commandBuffer);
        }
Exemplo n.º 2
0
 public void Commit(D3D11CommandBuffer commandBuffer)
 {
     _pendingCommandBuffers.Add(commandBuffer);
 }