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

Method QueryInterface

source/d3d12/d3d12_command_queue_downlevel.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37HRESULT STDMETHODCALLTYPE D3D12CommandQueueDownlevel::QueryInterface(REFIID riid, void **ppvObj)
38{
39 if (ppvObj == nullptr)
40 return E_POINTER;
41
42 // IUnknown is handled by D3D12CommandQueue
43 if (riid == __uuidof(this) ||
44 riid == __uuidof(ID3D12CommandQueueDownlevel))
45 {
46 AddRef();
47 *ppvObj = this;
48 return S_OK;
49 }
50
51 return _parent_queue->QueryInterface(riid, ppvObj);
52}
53ULONG STDMETHODCALLTYPE D3D12CommandQueueDownlevel::AddRef()
54{
55 return _parent_queue->AddRef();

Callers 1

PresentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected