Function applyComputeVars

Synopsis

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

bool applyComputeVars(ComputeVars *pVars, RootSignature *pRootSignature)

Description

No description yet.

Source

Lines 40-58 in Source/Falcor/Core/API/ComputeContext.cpp. Line 83 in Source/Falcor/Core/API/ComputeContext.h.

bool ComputeContext::applyComputeVars(ComputeVars* pVars, RootSignature* pRootSignature)
{
    bool varsChanged = (pVars != mpLastBoundComputeVars);
    // FIXME TODO Temporary workaround
    varsChanged = true;
    if (pVars->apply(this, varsChanged, pRootSignature) == false)
    {
        logWarning("ComputeContext::applyComputeVars() - applying ComputeVars failed, most likely because we ran out of descriptors. Flushing the GPU and retrying");
        flush(true);
        if (!pVars->apply(this, varsChanged, pRootSignature))
        {
            logError("ComputeVars::applyComputeVars() - applying ComputeVars failed, most likely because we ran out of descriptors");
            return false;
        }
    }
    return true;
}





Add Discussion as Guest

Log in