+1
Planned

ability to create the "instance" of code node

Vladimir Perminov 10 year бұрын updated by Dance Macabre 8 year бұрын 2
i have a huge node tree right now... http://SSMaker.ru/e648f0ac/
i decided to collapse this operations in to one "code" node.. and get this: http://SSMaker.ru/1b07c958/
a few code nodes with absolutly identical code in them... 
THE PROBLEM IS: i cant assign the same name to this code nodes.. 
i know it sounds ok, because names shold be differend..

but after compilation of the code SF creating a lot of absolutly identical functions with different names..
http://SSMaker.ru/0a02f2ac/
wich is killing the concept of functions in programming :) so after that i need to manually delete this numerated functions from compiled code and replace them with first original function in places where they been called.

i think will be great to be able to create the "instance" of code node wich can take a different arguments but have one function in the final compiled shader.

i think this will help with performance too

sorry for my english
+1
Planned
While this doesn't affect performance at all for shader code - it would be nice to be able to do this, yes. I'm not sure if a fix for this will come in SF, but it'll definitely be there in SF2

I know, that SF2 is pending, but maybe you will be able to add this feature to thecurrent SF.


Here what we have at this moment:


And here how it can be:



Probably that is not too hard to implement, at least from my point of view. It can be done by disabling some of the error checks inside SF for usual CODE node + adding dummy node, witch will not create the "function Call()", but will have the input & output and the same name, as the main function(or code) node.


I hope that we will see this soon.

Thank you and Good Luck Mr. Joachim Holmér !