MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / copyBufferRegion

Method copyBufferRegion

Source/Falcor/Core/API/CopyContext.cpp:578–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578void CopyContext::copyBufferRegion(const Buffer* pDst, uint64_t dstOffset, const Buffer* pSrc, uint64_t srcOffset, uint64_t numBytes)
579{
580 resourceBarrier(pDst, Resource::State::CopyDest);
581 resourceBarrier(pSrc, Resource::State::CopySource);
582
583 auto resourceEncoder = getLowLevelData()->getResourceCommandEncoder();
584 resourceEncoder->copyBuffer(pDst->getGfxBufferResource(), dstOffset, pSrc->getGfxBufferResource(), srcOffset, numBytes);
585 mCommandsPending = true;
586}
587
588void CopyContext::copySubresourceRegion(
589 const Texture* pDst,

Callers 12

executeMethod · 0.80
executeMethod · 0.80
endFrameMethod · 0.80
fetchCountMethod · 0.80
integrateIsotropicMethod · 0.80
GPU_TESTFunction · 0.80
testCopyRegionFunction · 0.80
testReadRawFunction · 0.80
testReadStructuredFunction · 0.80
testReadStructuredUintFunction · 0.80

Calls 2

getLowLevelDataFunction · 0.85

Tested by 1

GPU_TESTFunction · 0.64