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

Method map

Source/Falcor/Core/API/Buffer.cpp:334–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void* Buffer::map() const
335{
336 FALCOR_CHECK(
337 mMemoryType == MemoryType::Upload || mMemoryType == MemoryType::ReadBack,
338 "Trying to map a buffer that wasn't created with the upload or readback flags."
339 );
340
341 if (!mMappedPtr)
342 FALCOR_GFX_CALL(mGfxBufferResource->map(nullptr, &mMappedPtr));
343
344 return mMappedPtr;
345}
346
347void Buffer::unmap() const
348{

Callers 15

readPixelDataMethod · 0.80
executeMethod · 0.80
getMinMaxMethod · 0.80
verifyDataMethod · 0.80
renderTextMethod · 0.80
renderMethod · 0.80
readBackDataMethod · 0.80
copyDataToCPUMethod · 0.80
fetchCountMethod · 0.80
createResourcesMethod · 0.80
syncCPUDataMethod · 0.80
getTransformMethod · 0.80

Calls

no outgoing calls

Tested by 3

verifyDataMethod · 0.64
GPU_TESTFunction · 0.64
GPU_TESTFunction · 0.64