diff --git a/src/common/rendering/vulkan/textures/vk_texture.h b/src/common/rendering/vulkan/textures/vk_texture.h index 0376a909f..f829503d9 100644 --- a/src/common/rendering/vulkan/textures/vk_texture.h +++ b/src/common/rendering/vulkan/textures/vk_texture.h @@ -37,6 +37,8 @@ public: VulkanImage* GetNullTexture() { return NullTexture.get(); } VulkanImageView* GetNullTextureView() { return NullTextureView.get(); } + int GetHWTextureCount() { return (int)Textures.size(); } + VkTextureImage Shadowmap; VkTextureImage Lightmap; int LMTextureSize = 0; diff --git a/src/common/rendering/vulkan/vk_renderdevice.cpp b/src/common/rendering/vulkan/vk_renderdevice.cpp index cd5527243..9898b2a9b 100644 --- a/src/common/rendering/vulkan/vk_renderdevice.cpp +++ b/src/common/rendering/vulkan/vk_renderdevice.cpp @@ -78,6 +78,7 @@ static std::vector SupportedDevices; int vkversion; static TArray memheapnames; static TArray membudgets; +static int hwtexturecount; CUSTOM_CVAR(Bool, vk_debug, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL) { @@ -110,7 +111,7 @@ CCMD(vk_membudget) { if (membudgets[i].budget != 0) { - Printf("#%d %s - %d MB used out of %d MB estimated budget (%d%%)\n", + Printf("#%d%s - %d MB used out of %d MB estimated budget (%d%%)\n", i, memheapnames[i].GetChars(), (int)(membudgets[i].usage / (1024 * 1024)), (int)(membudgets[i].budget / (1024 * 1024)), @@ -123,6 +124,7 @@ CCMD(vk_membudget) (int)(membudgets[i].usage / (1024 * 1024))); } } + Printf("%d total hardware textures\n", hwtexturecount); } void I_BuildVKDeviceList(FOptionValues* opt) @@ -510,9 +512,10 @@ void VulkanRenderDevice::BeginFrame() for (unsigned int i = 0; i < memheapnames.Size(); i++) { bool deviceLocal = !!(mDevice->PhysicalDevice.Properties.Memory.memoryHeaps[i].flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT); - memheapnames[i] = deviceLocal ? "device local" : "system"; + memheapnames[i] = deviceLocal ? " (device local)" : ""; } } + hwtexturecount = mTextureManager->GetHWTextureCount(); if (levelMeshChanged) {