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

Method addFeature

Engine/source/shaderGen/featureSet.cpp:141–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void FeatureSet::addFeature( const FeatureType &type, S32 index )
142{
143 for ( U32 i=0; i < mFeatures.size(); i++ )
144 {
145 const FeatureInfo &info = mFeatures[i];
146 if ( info.type == &type &&
147 info.index == index )
148 return;
149 }
150
151 FeatureInfo info;
152 info.type = &type;
153 info.index = index;
154 mFeatures.push_back( info );
155
156 mDescription.clear();
157}
158
159void FeatureSet::removeFeature( const FeatureType &type )
160{

Callers 15

_overrideFeaturesMethod · 0.80
getInstancingMatMethod · 0.80
updateMethod · 0.80
_initShaderMethod · 0.80
processMaterialMethod · 0.80
_determineFeaturesMethod · 0.80
_createPassesMethod · 0.80
getFeatureSetMethod · 0.80
initMethod · 0.80
_overrideFeaturesMethod · 0.80
_initRenderMethod · 0.80

Calls 3

sizeMethod · 0.45
push_backMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected