MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _rebuildDesc

Method _rebuildDesc

Engine/source/shaderGen/featureSet.cpp:52–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void FeatureSet::_rebuildDesc()
53{
54 PROFILE_SCOPE( FeatureSet_RebuildDesc );
55
56 // First get the features in the proper order.
57 mFeatures.sort( _typeCmp );
58
59 String desc;
60
61 for ( U32 i=0; i < mFeatures.size(); i++ )
62 desc += String::ToString( "%s,%d\n",
63 mFeatures[i].type->getName().c_str(),
64 mFeatures[i].index );
65
66 // By interning the description we have only
67 // one instance in the system and we get fast
68 // pointer compares for equality.
69 mDescription = desc.intern();
70}
71
72const FeatureType& FeatureSet::getAt( U32 index, S32 *outIndex ) const
73{

Callers 1

featureSet.hFile · 0.80

Calls 5

internMethod · 0.80
sortMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected