|
LiteFX 0.5.1.2025
Computer Graphics Engine
|
Stores simple memory heap statistics, that can be quickly queried by calling IGraphicsFactory::memoryStatistics More...
#include <rendering_api.hpp>
Public Attributes | |
| bool | onGpu { false } |
true, if the heap is located in video memory and false otherwise. | |
| bool | cpuVisible { false } |
true, of the heap is accessible for the CPU and false otherwise. | |
| UInt32 | blocks {} |
| Returns the number of memory blocks in the heap. | |
| UInt32 | allocations {} |
| Returns the total number of allocations in the heap. | |
| UInt64 | blockSize {} |
| Returns the total size of allocated memory across all blocks in the heap. | |
| UInt64 | allocationSize {} |
| Returns the total size of memory for all allocations in the heap. Always less or equal to totalBlockSize. | |
| UInt64 | usedMemory {} |
| Estimated memory used by the program in the heap. | |
| UInt64 | availableMemory {} |
| Estimated memory available to the program in the heap. | |
Stores simple memory heap statistics, that can be quickly queried by calling IGraphicsFactory::memoryStatistics
| UInt32 LiteFX::Rendering::MemoryHeapStatistics::allocations {} |
Returns the total number of allocations in the heap.
| UInt64 LiteFX::Rendering::MemoryHeapStatistics::allocationSize {} |
Returns the total size of memory for all allocations in the heap. Always less or equal to totalBlockSize.
| UInt64 LiteFX::Rendering::MemoryHeapStatistics::availableMemory {} |
Estimated memory available to the program in the heap.
This value best represents the actual memory available to the program in the heap
| UInt32 LiteFX::Rendering::MemoryHeapStatistics::blocks {} |
Returns the number of memory blocks in the heap.
| UInt64 LiteFX::Rendering::MemoryHeapStatistics::blockSize {} |
Returns the total size of allocated memory across all blocks in the heap.
| bool LiteFX::Rendering::MemoryHeapStatistics::cpuVisible { false } |
true, of the heap is accessible for the CPU and false otherwise.
| bool LiteFX::Rendering::MemoryHeapStatistics::onGpu { false } |
true, if the heap is located in video memory and false otherwise.
| UInt64 LiteFX::Rendering::MemoryHeapStatistics::usedMemory {} |
Estimated memory used by the program in the heap.
This value best represents the actual memory pressure of the program in the heap, as it not only factors in allocations, but also other resources.