aconstlink / natus

[Discontinued] Software Framework for Audio/Visual/Interactive Real-Time Applications
https://aconstlink.de
MIT License
0 stars 0 forks source link

Replace Build-In Function Names as OpCodes #318

Closed aconstlink closed 2 years ago

aconstlink commented 2 years ago

nsls' build-ins are translated to late in the shader generation process where a build-in name is replace by the same name if the target shader has the same build-in name. So the generation process will be caught in an infinite loop. This could be handled differently, but leads to other problems.

So lets just rename all build-in names in the nsl shader so that there will be no ambiguity in later stages in the generation process.

All build-ins should be transformed their respective name + some special sign like step -> :step:. So the name :step: becomes the opcode of the function.