3 ms·
Take a look there: https://github.com/Const-me/vis_avs_dx/tree/master/avs_dx/DxVisuals/Expressions https://github.com/Const-me/vis_avs_dx/tree/master/avs_dx/Dx.
by Const-me 6y ago
Take a look there: https://github.com/Const-me/vis_avs_dx/tree/master/avs_dx/DxVisuals/Expressions https://github.com/Const-me/vis_avs_dx/tree/master/avs_dx/Dx... Couple test cases: https://github.com/Const-me/vis_avs_dx/blob/master/avs_dx/CompilerTest/CompilerTest.cpp https://github.com/Const-me/vis_avs_dx/blob/master/avs_dx/Co...
The transpiler is in C++/17. The source language is something called NSEEL, implemented in Winamp couple decades ago. The original runtime was a JIT into old-school x87 code. The target language is Microsoft HLSL, specifically it’s for shader model 5 for Direct3D 11.0.
I have little to no background with compiler development, but IMO my transpiler ain’t too bad, and it’s very efficient.