BRE12
CommandQueueManager.h
1 #pragma once
2 
3 #include <d3d12.h>
4 #include <mutex>
5 #include <tbb/concurrent_unordered_set.h>
6 
7 namespace BRE {
8 // To create/get command queues
10 public:
11  CommandQueueManager() = delete;
12  ~CommandQueueManager() = delete;
14  const CommandQueueManager& operator=(const CommandQueueManager&) = delete;
16  CommandQueueManager& operator=(CommandQueueManager&&) = delete;
17 
18  static void EraseAll() noexcept;
19 
20  static ID3D12CommandQueue& CreateCommandQueue(const D3D12_COMMAND_QUEUE_DESC& descriptor) noexcept;
21 
22 private:
24  static CommandQueues mCommandQueues;
25 
26  static std::mutex mMutex;
27 };
28 }
29 
30 
Definition: Camera.cpp:8
Definition: concurrent_unordered_set.h:58
Definition: CommandQueueManager.h:9