Skip to main content
GameDev.net gamedev.net
🔒 Locked

Closure and function pointers in HLSL

Started by AlexandreMutel Nov 24, 2011 at 3:36 PM 0 replies 2.2k views
Original Post
AlexandreMutel
AlexandreMutel
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.