DX12 version of NGX is not releasing all references

You’ll get

D3D12 WARNING: Live ID3D12Device at 0x000001EF2BD2D5F8, Refcount: 1 [ STATE_CREATION WARNING #274: LIVE_DEVICE]

when you call

NVSDK_NGX_D3D12_Init(..)
NVSDK_NGX_D3D12_Shutdown();
nvrhi::RefCountPtr<IDXGIDebug> pDebug;
DXGIGetDebugInterface1(0, IID_PPV_ARGS(&pDebug));
pDebug->ReportLiveObjects(DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_IGNORE_INTERNAL);

This is especially annoying if your engine uses infoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_WARNING, TRUE);

Funnily enough, ngx_dlss_demo is already checking for leaks in Debug, so all you have to do to repro is run the demo and look at the log.