Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Compiling HLSL to ASM? And inserting ASM into HLSL?

$
0
0
Hi, I'm just a self-taught amateur exploring HLSL (among other things). I'm using MikuMikuDance to render my models and effects. It's closed source but free, based on DX9 (so shader model 3.0). One of my problems with this renderer is that effects are always compiled at run time. This is handy for debugging, of course. But when I get something finished, load times can be irritating. I very much appreciate the intelligence of the compiler in terms of optimization, but loading times are the price to be paid for that. Since I usually attach shaders to models that I make for public use (public domain to the extent made possible by any other sources I might use), shader load times can limit my audience. I believe that if I could insert assembly into my .fx files, that I could bypass most of the compiler's thought processes. In order to do that, I'd need to know how to output my HLSL to ASM (I can't write ASM and have a lot of other priorities) and how to replace my HLSL with the outputted ASM. Maybe that's bad thinking? Like I said, I'm just a beginner, trying to work within the limits of my knowledge and my environment. Always happy to hear if I'm pursuing something unwise. But otherwise, this strikes me as something that is probably possible, and that would probably help load times quite a bit. Any help or advice? Wasn't able to refine my Googling enough to get anything useful.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>