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

Method hasFeature

Engine/source/shaderGen/featureSet.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool FeatureSet::hasFeature( const FeatureType &type, S32 index ) const
99{
100 PROFILE_SCOPE(FeatureSet_hasFeature);
101
102 for ( U32 i = 0; i < mFeatures.size(); i++)
103 {
104 if ( mFeatures[i].type == &type &&
105 ( index < 0 || mFeatures[i].index == index ) )
106 return true;
107 }
108
109 return false;
110}
111
112void FeatureSet::setFeature( const FeatureType &type, bool set, S32 index )
113{

Callers 15

innerRenderMethod · 0.45
_initShaderMethod · 0.45
processVertMethod · 0.45
processPixMethod · 0.45
getResourcesMethod · 0.45
processVertMethod · 0.45
processPixMethod · 0.45
getResourcesMethod · 0.45
processMaterialMethod · 0.45
isInstancedMethod · 0.45
initMethod · 0.45
_determineFeaturesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected