Extract code of function
Andrey
saasecondbox at yandex.ru
Sun May 26 21:54:29 UTC 2019
On Sunday, 26 May 2019 at 18:21:23 UTC, Dennis wrote:
> On Sunday, 26 May 2019 at 18:14:23 UTC, Jacob Carlborg wrote:
>> No, that's not possible.
>
> Some hacky solutions are possible by importing a source file as
> a string and parsing it manually. dglsl actually extracts D
> function code to put into glsl shaders. Here's the snippet.
> See:
> https://github.com/icecocoa6/dglsl/blob/master/source/dglsl/translator.d#L140
Interesting solution... Thanks for a hint.
More information about the Digitalmars-d-learn
mailing list