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