Original Post
Hi all,
I just wrote an article on faking closure/chained function pointers in HLSL in order to permit new kind of code reuse/abstraction. This technique is working on SM3.0, 4.0 and 5.0, so It might be useful if you need to perform some code combination without requiring copy/paste or preprocessors directives to work.
I just wrote an article on faking closure/chained function pointers in HLSL in order to permit new kind of code reuse/abstraction. This technique is working on SM3.0, 4.0 and 5.0, so It might be useful if you need to perform some code combination without requiring copy/paste or preprocessors directives to work.