private long ExecuteCommandListsInternal(IEnumerable <CompiledCommandList> commandLists) { long fenceValue = NextFenceValue++; ID3D12CommandList[] nativeCommandLists = commandLists.Select(c => c.NativeCommandList).ToArray(); NativeCommandQueue.ExecuteCommandLists(nativeCommandLists); NativeCommandQueue.Signal(Fence, fenceValue); return(fenceValue); }
public void EndDraw(CommandList commandList) { compiledCommandLists.Add(commandList.Close()); NativeCommandQueue.ExecuteCommandList(commandList.NativeCommandList); }
public void Dispose() { NativeCommandQueue.Dispose(); Fence.Dispose(); }