public ID3D11CommandList FinishCommandList(bool restoreState)
        {
            var result = new ID3D11CommandList();

            FinishCommandListInternal(restoreState, result).CheckError();
            return(result);
        }
 public Result FinishCommandList(bool restoreState, ID3D11CommandList commandList)
 {
     return(FinishCommandListInternal(restoreState, commandList));
 }