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

Method Run

Source/Engine/Graphics/GPUBuffer.cpp:379–397  ·  view source on GitHub ↗

[ThreadPoolTask]

Source from the content-addressed store, hash-verified

377protected:
378 // [ThreadPoolTask]
379 bool Run() override
380 {
381 // Check resources
382 const auto buffer = _buffer.Get();
383 if (buffer == nullptr || _staging == nullptr)
384 {
385 LOG(Warning, "Cannot download buffer data. Missing objects.");
386 return true;
387 }
388
389 // Gather data
390 if (_staging->GetData(_data))
391 {
392 LOG(Warning, "Staging resource of \'{0}\' get data failed.", buffer->ToString());
393 return true;
394 }
395
396 return false;
397 }
398
399 void OnEnd() override
400 {

Callers

nothing calls this directly

Calls 3

GetMethod · 0.45
GetDataMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected