MCPcopy Create free account
hub / github.com/carbonengine/trinity / Map

Method Map

shadercompiler/ASTNode.h:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149 template <typename T>
150 ASTNode* Map( T callback )
151 {
152 ASTNode* newNode = callback( this );
153 for( size_t i = 0; i < newNode->m_children.size(); ++i )
154 {
155 if( newNode->m_children[i] )
156 {
157 newNode->m_children[i] = newNode->m_children[i]->Map( callback );
158 }
159 }
160 return newNode;
161 }
162
163private:
164 ASTNodeType m_nodeType;

Callers 4

ReplaceFloatModuloFunction · 0.45
AddShaderTableArgumentsFunction · 0.45
PatchShaderFunction · 0.45
MergeSamplersFunction · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected