| 489 | } |
| 490 | |
| 491 | void GPUBuffer::OnReleaseGPU() |
| 492 | { |
| 493 | #if COMPILE_WITH_PROFILER |
| 494 | auto group = ProfilerMemory::Groups::GraphicsBuffers; |
| 495 | if (EnumHasAnyFlags(_desc.Flags, GPUBufferFlags::VertexBuffer)) |
| 496 | group = ProfilerMemory::Groups::GraphicsVertexBuffers; |
| 497 | else if (EnumHasAnyFlags(_desc.Flags, GPUBufferFlags::IndexBuffer)) |
| 498 | group = ProfilerMemory::Groups::GraphicsIndexBuffers; |
| 499 | ProfilerMemory::IncrementGroup(group, _memoryUsage); |
| 500 | #endif |
| 501 | |
| 502 | _desc.Clear(); |
| 503 | _isLocked = false; |
| 504 | } |
nothing calls this directly
no test coverage detected