fix free memory monitor

This commit is contained in:
pufferffish 2024-06-15 10:52:34 +01:00
parent e4e8a5d25a
commit 257364cb3c
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ void vk_check_vram(vk_handle_t rh, int i, mem_info_t *resp) {
resp->gpu_name[GPU_NAME_LEN - 1] = '\0';
strncpy(&resp->gpu_name[0], properties.deviceName, GPU_NAME_LEN - 1);
resp->total = (uint64_t) device_memory_total_usage;
resp->free = (uint64_t) device_memory_total_usage;
resp->free = (uint64_t) device_memory_heap_budget;
resp->major = VK_API_VERSION_MAJOR(properties.apiVersion);
resp->minor = VK_API_VERSION_MINOR(properties.apiVersion);
resp->patch = VK_API_VERSION_PATCH(properties.apiVersion);