diff options
author | Julian Eisel <julian@blender.org> | 2020-08-07 14:04:31 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-08-07 14:04:31 +0300 |
commit | 0d2d4a6d4a75ac38c41f872c88255eab70e88ab7 (patch) | |
tree | b7a7518af86dddba48e05a98b3c2be55e8804721 /source/blender/functions/FN_multi_function_network_optimization.hh | |
parent | 9b416c66fb714bdfd15a481489dbf650d0f389ea (diff) | |
parent | cfc6f9eb18e701f5be601b95c45004e8cf7fbc81 (diff) |
Merge branch 'master' into temp-ui-button-type-refactortemp-ui-button-type-refactor
Diffstat (limited to 'source/blender/functions/FN_multi_function_network_optimization.hh')
-rw-r--r-- | source/blender/functions/FN_multi_function_network_optimization.hh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source/blender/functions/FN_multi_function_network_optimization.hh b/source/blender/functions/FN_multi_function_network_optimization.hh new file mode 100644 index 00000000000..6d0165643ce --- /dev/null +++ b/source/blender/functions/FN_multi_function_network_optimization.hh @@ -0,0 +1,29 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#pragma once + +#include "FN_multi_function_network.hh" + +#include "BLI_resource_collector.hh" + +namespace blender::fn::mf_network_optimization { + +void dead_node_removal(MFNetwork &network); +void constant_folding(MFNetwork &network, ResourceCollector &resources); +void common_subnetwork_elimination(MFNetwork &network); + +} // namespace blender::fn::mf_network_optimization |