|
Ultralight C API 2.0.0
|
#include <AppCore/CAPI.h>
GPU memory statistics reported by the App's GPU driver.
Public Attributes | |
| uint64_t | texture_bytes |
| Bytes allocated for sampled textures (not counting render targets). | |
| uint32_t | texture_count |
| Number of sampled textures currently allocated. | |
| uint64_t | render_target_bytes |
| Bytes allocated for render targets, including multisample storage and any single-sample resolve textures. | |
| uint32_t | render_target_count |
| Number of render-target textures currently allocated. | |
| uint64_t | geometry_bytes |
| Bytes allocated for geometry (vertex and index buffers). | |
| uint32_t | geometry_count |
| Number of geometry buffers currently allocated. | |
| uint64_t | swap_chain_bytes |
| Bytes allocated for window back-buffers. | |
| uint32_t | swap_chain_count |
| Number of swap chains currently active. | |
| uint64_t | transient_bytes |
| Bytes allocated for transient per-frame memory (upload staging and constant buffers). | |
| uint64_t | allocator_committed_bytes |
| Total bytes of GPU heap memory committed by the backend's allocator. | |
| uint64_t | process_usage_bytes |
| Current video memory usage of this process, as reported by the operating system. | |
| uint64_t | process_budget_bytes |
| Video memory budget for this process, as reported by the operating system. | |
| uint64_t | adapter_video_memory_bytes |
| Dedicated video memory of the active display adapter, in bytes. | |
| char | adapter_description [128] |
| Human-readable name of the active display adapter (UTF-8, null-terminated, truncated if necessary). | |
| char adapter_description[128] |
Human-readable name of the active display adapter (UTF-8, null-terminated, truncated if necessary).
| uint64_t adapter_video_memory_bytes |
Dedicated video memory of the active display adapter, in bytes.
| uint64_t allocator_committed_bytes |
Total bytes of GPU heap memory committed by the backend's allocator.
Only reported by backends that sub-allocate resources from larger heaps; zero elsewhere.
| uint64_t geometry_bytes |
Bytes allocated for geometry (vertex and index buffers).
| uint32_t geometry_count |
Number of geometry buffers currently allocated.
| uint64_t process_budget_bytes |
Video memory budget for this process, as reported by the operating system.
Zero if the OS query is unavailable.
| uint64_t process_usage_bytes |
Current video memory usage of this process, as reported by the operating system.
Zero if the OS query is unavailable.
| uint64_t render_target_bytes |
Bytes allocated for render targets, including multisample storage and any single-sample resolve textures.
| uint32_t render_target_count |
Number of render-target textures currently allocated.
| uint64_t swap_chain_bytes |
Bytes allocated for window back-buffers.
| uint32_t swap_chain_count |
Number of swap chains currently active.
| uint64_t texture_bytes |
Bytes allocated for sampled textures (not counting render targets).
| uint32_t texture_count |
Number of sampled textures currently allocated.
| uint64_t transient_bytes |
Bytes allocated for transient per-frame memory (upload staging and constant buffers).