Function releaseResource

Synopsis

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

void releaseResource(ApiObjectHandle pResource)

Description

No description yet.

Source

Lines 141-151 in Source/Falcor/Core/API/Device.cpp. Line 159 in Source/Falcor/Core/API/Device.h.

void Device::releaseResource(ApiObjectHandle pResource)
{
    if (pResource)
    {
        // Some static objects get here when the application exits
        if(this)
        {
            mDeferredReleases.push({ mpFrameFence->getCpuValue(), pResource });
        }
    }
}





Add Discussion as Guest

Log in