From 1b2b6196ee5fb25b7588ffe4e68a65264519fafd Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 18 Nov 2016 21:19:58 +0100 Subject: [PATCH] Change VERBOSE_DIRTY_RESOURCES to use macro options properly --- renderdoc/core/resource_manager.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/renderdoc/core/resource_manager.h b/renderdoc/core/resource_manager.h index 3a03fdd9d..f32c361b7 100644 --- a/renderdoc/core/resource_manager.h +++ b/renderdoc/core/resource_manager.h @@ -55,7 +55,7 @@ enum FrameRefType // verbose prints with IDs of each dirty resource and whether it was prepared, // and whether it was serialised. -#define VERBOSE_DIRTY_RESOURCES 0 +#define VERBOSE_DIRTY_RESOURCES OPTION_OFF namespace ResourceIDGen { @@ -927,7 +927,7 @@ void ResourceManager::Prepare prepared++; -#if VERBOSE_DIRTY_RESOURCES +#if ENABLED(VERBOSE_DIRTY_RESOURCES) RDCDEBUG("Prepare Resource %llu", id); #endif @@ -971,7 +971,7 @@ void ResourceManager::InsertI if(m_FrameReferencedResources.find(id) == m_FrameReferencedResources.end() && !RenderDoc::Inst().GetCaptureOptions().RefAllResources) { -#if VERBOSE_DIRTY_RESOURCES +#if ENABLED(VERBOSE_DIRTY_RESOURCES) RDCDEBUG("Dirty tesource %llu is GPU dirty but not referenced - skipping", id); #endif skipped++; @@ -983,7 +983,7 @@ void ResourceManager::InsertI if(!AllowDeletedResource_InitialState() && !isAlive) { -#if VERBOSE_DIRTY_RESOURCES +#if ENABLED(VERBOSE_DIRTY_RESOURCES) RDCDEBUG("Resource %llu no longer exists - skipping", id); #endif continue; @@ -996,7 +996,7 @@ void ResourceManager::InsertI if(record == NULL) { -#if VERBOSE_DIRTY_RESOURCES +#if ENABLED(VERBOSE_DIRTY_RESOURCES) RDCDEBUG("Resource %llu has no resource record - skipping", id); #endif continue; @@ -1004,13 +1004,13 @@ void ResourceManager::InsertI if(record->SpecialResource) { -#if VERBOSE_DIRTY_RESOURCES +#if ENABLED(VERBOSE_DIRTY_RESOURCES) RDCDEBUG("Resource %llu is special - skipping", id); #endif continue; } -#if VERBOSE_DIRTY_RESOURCES +#if ENABLED(VERBOSE_DIRTY_RESOURCES) RDCDEBUG("Serialising dirty Resource %llu", id); #endif