Exemple #1
0
        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);
        }
Exemple #2
0
 public void EndDraw(CommandList commandList)
 {
     compiledCommandLists.Add(commandList.Close());
     NativeCommandQueue.ExecuteCommandList(commandList.NativeCommandList);
 }
Exemple #3
0
 public void Dispose()
 {
     NativeCommandQueue.Dispose();
     Fence.Dispose();
 }