Option to disable logging completely.
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
This commit is contained in:
parent
7bdde2e6f1
commit
cf721cc21a
20 changed files with 86 additions and 57 deletions
|
|
@ -40,8 +40,10 @@ Manager::Manager(uint32_t physicalDeviceIndex,
|
|||
{
|
||||
this->mManageResources = true;
|
||||
|
||||
// Make sure the logger is setup
|
||||
// Make sure the logger is setup
|
||||
#if !KOMPUTE_OPT_LOG_LEVEL_DISABLED
|
||||
logger::setupLogger();
|
||||
#endif
|
||||
|
||||
this->createInstance();
|
||||
this->createDevice(
|
||||
|
|
@ -58,8 +60,10 @@ Manager::Manager(std::shared_ptr<vk::Instance> instance,
|
|||
this->mPhysicalDevice = physicalDevice;
|
||||
this->mDevice = device;
|
||||
|
||||
// Make sure the logger is setup
|
||||
// Make sure the logger is setup
|
||||
#if !KOMPUTE_OPT_LOG_LEVEL_DISABLED
|
||||
logger::setupLogger();
|
||||
#endif
|
||||
}
|
||||
|
||||
Manager::~Manager()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue