MCPcopy Create free account
hub / github.com/ImageEngine/cortex / visitInputs

Function visitInputs

src/IECoreScene/ShaderNetworkAlgo.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102{
103
104void visitInputs( const ShaderNetwork *network, InternedString handle, std::unordered_set<InternedString> &visited )
105{
106 if( visited.insert( handle ).second )
107 {
108 for( const auto &c : network->inputConnections( handle ) )
109 {
110 visitInputs( network, c.source.shader, visited );
111 }
112 }
113}
114
115} // namespace
116

Callers 1

removeUnusedShadersMethod · 0.85

Calls 2

insertMethod · 0.80
inputConnectionsMethod · 0.45

Tested by

no test coverage detected