JBR-6045 WLToolkit(Vulkan): Add options to select physical device

Changed access to _name field, minor corrections in verbose print

(cherry picked from commit 36407e978c)
This commit is contained in:
Alexey Ushakov
2023-09-08 12:27:22 +02:00
committed by jbrbot
parent 2df91fc6f3
commit 36f4348755
2 changed files with 2 additions and 2 deletions

View File

@@ -211,8 +211,8 @@ VKGraphicsEnvironment::VKGraphicsEnvironment() :
fprintf(stderr, " %c%ld: %s\n", devNum == _default_device_number ? '*' : ' ',
devNum, (*devIter)->name().c_str());
}
fprintf(stderr, "\n");
}
fprintf(stderr, "\n");
_default_device = &*_devices[_default_device_number]; // TODO pick first just to check hat virtual device creation works
_default_device->init();

View File

@@ -127,7 +127,7 @@ public:
return *((const vk::raii::Device&) *this);
}
std::string& name() {
const std::string& name() {
return _name;
}
};