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

Method QueryInterface

source/d3d12/d3d12_command_list.cpp:80–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80HRESULT STDMETHODCALLTYPE D3D12GraphicsCommandList::QueryInterface(REFIID riid, void **ppvObj)
81{
82 if (ppvObj == nullptr)
83 return E_POINTER;
84
85 if (check_and_upgrade_interface(riid))
86 {
87 AddRef();
88 *ppvObj = this;
89 return S_OK;
90 }
91
92 // Interface ID to query the original object from a proxy object
93 if (riid == IID_UnwrappedObject)
94 {
95 _orig->AddRef();
96 *ppvObj = _orig;
97 return S_OK;
98 }
99
100 return _orig->QueryInterface(riid, ppvObj);
101}
102ULONG STDMETHODCALLTYPE D3D12GraphicsCommandList::AddRef()
103{
104 _orig->AddRef();

Callers 2

GetDeviceMethod · 0.45

Calls 1

AddRefMethod · 0.45

Tested by

no test coverage detected