![]() |
VPP
0.7
A high-level modern C++ API for Vulkan
|
Utility class for dealing with device feature lists. More...
#include <vppPhysicalDevice.hpp>
Public Member Functions | |
DeviceFeatures (const PhysicalDevice &hPhysDevice) | |
Constructs the feature list for specified device. | |
bool | enableIfSupported (EFeature feature) |
Enables specified feature, if supported by the device. More... | |
bool | isSupported (EFeature feature) const |
Checks whether the device supports given feature. | |
Utility class for dealing with device feature lists.
Certain device features must be explicitly enabled to be used. DeviceFeatures class manages such features. All features are disabled by default, and you can enable them selectively using the enableIfSupported() method.
Next, you should specify the DeviceFeatures object to the Device constructor. DeviceFeatures is only a container of flags, it is the Device object that will actually enable the features.
bool vpp::DeviceFeatures::enableIfSupported | ( | EFeature | feature | ) |
Enables specified feature, if supported by the device.
Returns whether feaure is supported and has been enabled.