MCPcopy Create free account
hub / github.com/crosire/reshade / D3D12CommandQueue

Method D3D12CommandQueue

source/d3d12/d3d12_command_queue.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include "addon_manager.hpp"
13
14D3D12CommandQueue::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}
26D3D12CommandQueue::~D3D12CommandQueue()
27{
28#if RESHADE_ADDON

Callers

nothing calls this directly

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected