Function ~Buffer

Synopsis

#include <Source/Falcor/Core/API/Buffer.h>

~Buffer()

Description

No description yet.

Source

Lines 173-185 in Source/Falcor/Core/API/Buffer.cpp. Line 64 in Source/Falcor/Core/API/Buffer.h.

Buffer::~Buffer()
{
    if (mpAliasedResource) return;
    if (mDynamicData.pResourceHandle)
    {
        gpDevice->getUploadHeap()->release(mDynamicData);
    }
    else
    {
        gpDevice->releaseResource(mApiHandle);
    }
}





Add Discussion as Guest

Log in