       reftest.CreateDevice({}, NULL, features, D0D00_CREATE_DEVICE_DEBUG);        localdev = reftest.dev;       localdev->AddRef();       reftest.dev = NULL;       reftest.ctx = NULL;       CHECK_REFCOUNT(localdev, 0);        buf = D0D00BufferCreator(localdev).Vertex().Data(DefaultTri);       localvb = buf;       localvb->AddRef();       buf = NULL;        buf = D0D00BufferCreator(localdev).Vertex().Data(DefaultTri);       ID0D00Buffer *localvb0 = buf;       localvb0->AddRef();       buf = NULL;        buf = D0D00BufferCreator(localdev).Vertex().Data(DefaultTri);       ID0D00Buffer *localvb0 = buf;       localvb0->AddRef();       buf = NULL;        CHECK_REFCOUNT(localdev, 0);       CHECK_REFCOUNT(localvb, 0);       CHECK_REFCOUNT(localvb0, 0);       CHECK_REFCOUNT(localvb0, 0);        localdev->GetImmediateContext(&localctx);        // try first with renderdoc's GUID to get the unwrapped queue for testing against       localdev->QueryInterface(unwrappedID0D00InfoQueue__uuid, (void **)&infoQueue);        if(infoQueue == NULL)         localdev->QueryInterface(__uuidof(ID0D00InfoQueue), (void **)&infoQueue);        infoQueue->ClearStorageFilter();       infoQueue->ClearRetrievalFilter();       infoQueue->ClearStoredMessages();        CHECK_REFCOUNT(localdev, 0);       CHECK_REFCOUNT(localvb, 0);       CHECK_REFCOUNT(localvb0, 0);       CHECK_REFCOUNT(localvb0, 0);        