mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Register D3D device DXGI callback on replay too
This commit is contained in:
@@ -391,11 +391,14 @@ extern "C" __declspec(dllexport) HRESULT
|
||||
__cdecl RENDERDOC_CreateWrappedD3D12Device(IUnknown *pAdapter,
|
||||
D3D_FEATURE_LEVEL MinimumFeatureLevel, REFIID riid,
|
||||
void **ppDevice);
|
||||
ID3DDevice *GetD3D12DeviceIfAlloc(IUnknown *dev);
|
||||
|
||||
ReplayCreateStatus D3D12_CreateReplayDevice(const char *logfile, IReplayDriver **driver)
|
||||
{
|
||||
RDCDEBUG("Creating a D3D12 replay device");
|
||||
|
||||
WrappedIDXGISwapChain3::RegisterD3DDeviceCallback(GetD3D12DeviceIfAlloc);
|
||||
|
||||
HMODULE lib = NULL;
|
||||
lib = LoadLibraryA("d3d12.dll");
|
||||
if(lib == NULL)
|
||||
|
||||
Reference in New Issue
Block a user