Home -> IGraphicsDevice -> GetAllSupportedFeatures

Description

The GetAllSupportedFeatures method returns an std::set containing all Features which are supported by the device. It is appropriate to test for optional support for a given device feature, where your application can optionally use a feature if it is available, but can fallback to using an alternate approach if it is unavailable. It may be more appropriate for your application to call the IsFeatureSupported method instead however, if you only need to test whether an individual feature is supported.

ImportantImportant

If your application cannot run without a certain optional feature, it is best to exclude devices which don't support the feature when selecting devices under the IGraphicsDeviceEnumerator interface, using either the FilterDevicesWithoutFeature method or the FilterDevicesWithoutAllFeatures method as appropriate.

WarningWarning

Just because an optional feature is available on a given device, doesn't mean it's automatically activated. Applications must request all optional features they intend to use when calling the CreateRenderer method, otherwise those features will not be activated even though they are available. Some underlying rendering APIs require this information, which allows them to potentially improve performance where some features which have a performance impact are not used.

Usage

std::set<Feature> GetAllSupportedFeatures() const;

Return value

[std::set<Feature>]
True if the device supports all the features in the supplied feature set, false otherwise.

See also