MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetData

Method GetData

Source/Engine/Graphics/GPUBuffer.cpp:436–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436bool GPUBuffer::GetData(BytesContainer& output)
437{
438 PROFILE_CPU();
439 void* mapped = Map(GPUResourceMapMode::Read);
440 if (!mapped)
441 return true;
442 output.Copy((byte*)mapped, GetSize());
443 Unmap();
444 return false;
445}
446
447void GPUBuffer::SetData(const void* data, uint32 size)
448{

Callers 1

RunMethod · 0.45

Calls 2

GetSizeFunction · 0.70
CopyMethod · 0.45

Tested by

no test coverage detected