I am using DX9/DX10 via SlimDX for a project, and am looking into ways of speeding up loading.
One of the slow-downs is loading the effect files. I am currently using Effect.FromString to load the effects.
I have looked through the documentation and on google, but I have found no way of precompiling effects for either DX9 or DX10.
The only slightly related articles are those of compiling individual shaders(pixel shader, vertex shader, etc), but it doesn't seem possible to recreate the effect after you compile the individual parts.
3 replies to this topic
Sponsor:
#2 Members - Reputation: 416
Posted 26 April 2012 - 07:56 AM
I havent used SlimDX before, but you can compile an effect in Directx. http://msdn.microsoft.com/en-us/library/windows/desktop/bb205078%28v=vs.85%29.aspx
Maybe that will help you in your search in slimdx
Maybe that will help you in your search in slimdx
Wisdom is knowing when to shut up, so try it.
--Game Development http://nolimitsdesigns.com: Reliable UDP library, Threading library, Math Library, UI Library. Take a look, its all free.
--Game Development http://nolimitsdesigns.com: Reliable UDP library, Threading library, Math Library, UI Library. Take a look, its all free.






