tp::FormatCapabilities struct

Represents the set of capabilities supported by a device for a particular format.

Constructors, destructors, conversion operators

FormatCapabilities(FormatUsageMask usageMask = FormatUsageMask::None(), FormatFeatureMask featureMask = FormatFeatureMask::None()) constexpr

Public functions

auto isSubsetOf(const FormatCapabilities& other) const -> bool constexpr
Returns true if this describes a subset of the capabilities of other.
auto isSupersetOf(const FormatCapabilities& other) const -> bool constexpr
Returns true if this describes a superset of the capabilities of other.

Public variables

FormatFeatureMask featureMask
The set of features that are supported for a format.
FormatUsageMask usageMask
The set of usages that are supported for a format.

Function documentation

tp::FormatCapabilities::FormatCapabilities(FormatUsageMask usageMask = FormatUsageMask::None(), FormatFeatureMask featureMask = FormatFeatureMask::None()) constexpr

Parameters
usageMask The usage mask of the capabilities.
featureMask The feature mask of the capabilities.