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

Method GraphicsDumping

Source/Engine/Profiler/ProfilerGPU.cpp:271–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269GraphicsDumping* Dumping = nullptr;
270
271GraphicsDumping::GraphicsDumping(int32 frames)
272 : Allocator(16 * 1024) // 16kB
273 , Items(&Allocator)
274{
275 NameBuffers[0] = (Char*)Allocator.Allocate(BufferSize * sizeof(Char));
276 NameBuffers[1] = (Char*)Allocator.Allocate(BufferSize * sizeof(Char));
277 FramesLeft = frames;
278 NextFrame = Engine::FrameCount + 1; // Start from the next frame
279 WasProfilerGPUEnabled = ProfilerGPU::Enabled;
280 ProfilerGPU::Enabled = true;
281 Engine::Draw.Bind<GraphicsDumping, &GraphicsDumping::OnDraw>(this);
282}
283
284GraphicsDumping::~GraphicsDumping()
285{

Callers

nothing calls this directly

Calls 1

AllocateMethod · 0.45

Tested by

no test coverage detected