FeatureSet

Engine/source/shaderGen/featureSet.h

More...

Classes:

Protected Attributes

A string representation of all the features used for comparisons.

The list of featurs.

Public Static Attributes

Default empty feature set.

Protected Static Functions

Protected Functions

Public Functions

Clears all features.

exclude(const FeatureSet & features)

Removes features that are in the input set.

filter(const FeatureSet & features)

Removes features that are not in the input set.

getAt(U32 index, S32 * outIndex)

Returns the feature at the index and optionally the feature index when it was added.

Returns the feature count.

Return the description string which uniquely identifies this feature set.

bool

Returns true if this handle has this feature.

bool

Returns true if the feature set is empty.

bool

Returns true if the feature set is not empty.

merge(const FeatureSet & features)
bool

Equality operators.

setFeature(const FeatureType & type, bool set, S32 index)

Detailed Description

Protected Attributes

String mDescription 

A string representation of all the features used for comparisons.

Vector< FeatureInfo > mFeatures 

The list of featurs.

Public Static Attributes

const FeatureSet EmptySet 

Default empty feature set.

Protected Static Functions

_typeCmp(const FeatureInfo * a, const FeatureInfo * b)

Protected Functions

_rebuildDesc()

Public Functions

FeatureSet()

FeatureSet(const FeatureSet & h)

addFeature(const FeatureType & type, S32 index)

clear()

Clears all features.

exclude(const FeatureSet & features)

Removes features that are in the input set.

filter(const FeatureSet & features)

Removes features that are not in the input set.

getAt(U32 index, S32 * outIndex)

Returns the feature at the index and optionally the feature index when it was added.

getCount()

Returns the feature count.

getDescription()

Return the description string which uniquely identifies this feature set.

getNextFeatureIndex(const FeatureType & type, S32 index)

hasFeature(const FeatureType & type, S32 index)

Returns true if this handle has this feature.

isEmpty()

Returns true if the feature set is empty.

isNotEmpty()

Returns true if the feature set is not empty.

merge(const FeatureSet & features)

operator!=(const FeatureSet & h)

Equality operators.

operator=(const FeatureSet & h)

operator==(const FeatureSet & h)

operator[](const FeatureType & type)

removeFeature(const FeatureType & type)

setFeature(const FeatureType & type, bool set, S32 index)