Only print unimplemented messages once each, instead of spamming

This commit is contained in:
baldurk
2015-10-02 17:40:44 +02:00
parent 8eddd387d7
commit 1ae521823c
+1 -1
View File
@@ -55,7 +55,7 @@
using std::map;
// similar to RDCUNIMPLEMENTED but for things that are hit often so we don't want to fire the debugbreak.
#define VULKANNOTIMP(...) RDCDEBUG("Vulkan not implemented - " __VA_ARGS__)
#define VULKANNOTIMP(...) do { static bool msgprinted = false; if(!msgprinted) RDCDEBUG("Vulkan not implemented - " __VA_ARGS__); msgprinted = true; } while(0)
class WrappedVulkan;
class VulkanDebugManager;