diff options
author | reduz <reduzio@gmail.com> | 2021-07-02 20:14:19 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-03 10:15:04 -0300 |
commit | 6c55d2aad22cd5fc3a7f1499c4cb85779613a394 (patch) | |
tree | 13e55bfba5921dfa904b93830be058b2ca9cc175 /drivers/vulkan/rendering_device_vulkan.h | |
parent | ecf9ea740ef99afbfac94fc5da50988279fd9b9b (diff) | |
download | redot-engine-6c55d2aad22cd5fc3a7f1499c4cb85779613a394.tar.gz |
Fix Render Info
* Fixed and redone the process to obtain render information from a viewport
* Some stats, such as material changes are too difficult to guess on Vulkan, were removed.
* Separated visible and shadow stats, which causes confusion.
* Texture, buffer and general video memory can be queried now.
* Fixed the performance metrics too.
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.h')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.h b/drivers/vulkan/rendering_device_vulkan.h index 9f5830103d..1f86fe9e48 100644 --- a/drivers/vulkan/rendering_device_vulkan.h +++ b/drivers/vulkan/rendering_device_vulkan.h @@ -1005,6 +1005,9 @@ class RenderingDeviceVulkan : public RenderingDevice { VulkanContext *context = nullptr; + uint64_t image_memory = 0; + uint64_t buffer_memory = 0; + void _free_internal(RID p_id); void _flush(bool p_current_frame); @@ -1191,7 +1194,7 @@ public: virtual RenderingDevice *create_local_device(); - virtual uint64_t get_memory_usage() const; + virtual uint64_t get_memory_usage(MemoryType p_type) const; virtual void set_resource_name(RID p_id, const String p_name); |