Function copyResource

Synopsis

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

void copyResource(const Resource *pDst, const Resource *pSrc)

Description

Copy an entire resource

Source

Lines 279-285 in Source/Falcor/Core/API/D3D12/D3D12CopyContext.cpp. Line 95 in Source/Falcor/Core/API/CopyContext.h.

void CopyContext::copyResource(const Resource* pDst, const Resource* pSrc)
{
    resourceBarrier(pDst, Resource::State::CopyDest);
    resourceBarrier(pSrc, Resource::State::CopySource);
    mpLowLevelData->getCommandList()->CopyResource(pDst->getApiHandle(), pSrc->getApiHandle());
    mCommandsPending = true;
}





Add Discussion as Guest

Log in