Function textureBarrier

Synopsis

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

bool textureBarrier(const Texture *pTexture, Resource::State newState)

Description

No description yet.

Source

Lines 242-248 in Source/Falcor/Core/API/D3D12/D3D12CopyContext.cpp. Line 147 in Source/Falcor/Core/API/CopyContext.h.

bool CopyContext::textureBarrier(const Texture* pTexture, Resource::State newState)
{
    bool recorded = d3d12GlobalResourceBarrier(pTexture, newState, mpLowLevelData->getCommandList());
    pTexture->setGlobalState(newState);
    mCommandsPending = mCommandsPending || recorded;
    return recorded;
}





Add Discussion as Guest

Log in to DocsForge