VPP  0.7
A high-level modern C++ API for Vulkan
Public Member Functions | List of all members
vpp::DeviceFeatures Class Reference

Utility class for dealing with device feature lists. More...

#include <vppPhysicalDevice.hpp>

Inheritance diagram for vpp::DeviceFeatures:

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.
 

Detailed Description

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.

Member Function Documentation

◆ enableIfSupported()

bool vpp::DeviceFeatures::enableIfSupported ( EFeature  feature)

Enables specified feature, if supported by the device.

Returns whether feaure is supported and has been enabled.


The documentation for this class was generated from the following file: