| 269 | GraphicsDumping* Dumping = nullptr; |
| 270 | |
| 271 | GraphicsDumping::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 | |
| 284 | GraphicsDumping::~GraphicsDumping() |
| 285 | { |