| 12 | #include "addon_manager.hpp" |
| 13 | |
| 14 | D3D12CommandQueue::D3D12CommandQueue(D3D12Device *device, ID3D12CommandQueue *original) : |
| 15 | command_queue_impl(device, original), |
| 16 | _device(device) |
| 17 | { |
| 18 | assert(_orig != nullptr && _device != nullptr); |
| 19 | // Explicitly add a reference to the device, to ensure it stays valid for the lifetime of this queue object |
| 20 | _device->AddRef(); |
| 21 | |
| 22 | #if RESHADE_ADDON |
| 23 | reshade::invoke_addon_event<reshade::addon_event::init_command_queue>(this); |
| 24 | #endif |
| 25 | } |
| 26 | D3D12CommandQueue::~D3D12CommandQueue() |
| 27 | { |
| 28 | #if RESHADE_ADDON |