class new in Git master
Base class for Vulkan tests and benchmarks.
This class is built into a separate static library and only if
WITH_VULKANTESTER is enabled when building Magnum. To use it with CMake, request the
VulkanTester component of the
Magnum package. Derive your test class from this class instead of Corrade::
Magnum::VulkanTester target or add it to the
LIBRARIES section of the corrade_
find_package(Magnum REQUIRED VulkanTester) # ... corrade_add_test(YourTest YourTest.cpp LIBRARIES Magnum::VulkanTester)
Additionally, if you're using Magnum as a CMake subproject, ensure it's enabled as it's not built by default:
set(WITH_OPENGLTESTER ON CACHE BOOL "" FORCE) add_subdirectory(magnum EXCLUDE_FROM_ALL)
If you want to create a custom device, use the VulkanTester(NoCreateT) constructor. You can then move the device and queue instances to the getters to make them available through common interfaces again. If you want to create a custom instance as well, use the VulkanTester(NoCreateT, NoCreateT) variant.