tag:blogger.com,1999:blog-1076643699683521890.post440988064000281230..comments2015-08-24T23:42:42.305+11:00Comments on code4k: Advanced HLSL using closures and function pointersxoofx - Alexandre MUTELhttp://www.blogger.com/profile/05096938106073079832noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1076643699683521890.post-11583861229493169162013-04-26T07:36:39.181+11:002013-04-26T07:36:39.181+11:00Love this. I'm using it in my deferred shading...Love this. I'm using it in my deferred shading engine, to select the materials based on an index, so i don't have to loop trough each option. Really nice indeedAnonymoushttps://www.blogger.com/profile/08984912295176156794noreply@blogger.comtag:blogger.com,1999:blog-1076643699683521890.post-26380088362535354532012-11-15T00:18:05.646+11:002012-11-15T00:18:05.646+11:00You can declare a new class within a function!? Ve...You can declare a new class within a function!? Very nice indeed! I didn't know HLSL allowed this. I have been working on a different approach for using higher order functions. A library I am working on translates F# to HLSL. Check it out: https://github.com/rookboom/SharpShaders/wiki/Higher-order-functionsJohan Verweyhttps://www.blogger.com/profile/10760670464633678999noreply@blogger.comtag:blogger.com,1999:blog-1076643699683521890.post-4740470712744602052012-02-09T03:48:25.051+11:002012-02-09T03:48:25.051+11:00At first I thought: mixing interfaces and abstract...At first I thought: mixing interfaces and abstract classes != closures, then read on and it hit me. I approve.diabolhttps://www.blogger.com/profile/14241314794417175350noreply@blogger.comtag:blogger.com,1999:blog-1076643699683521890.post-88554916108688120372011-11-30T04:55:35.215+11:002011-11-30T04:55:35.215+11:00Very clever! Now on to try it on Cg :)Very clever! Now on to try it on Cg :)R Calocahttps://www.blogger.com/profile/15408750277652548588noreply@blogger.com