In my engine I have some default shaders that are loaded on startup(but this is relevant even when using custom user end shaders) and it's starting to take a long time to load and I've only got 14 shaders being created.
I'm using D3DX11CompileFromFile(), shader model 5 and am not currently using .fx files but am loading from seperate .hlsl files the VS,HS,DS,PS etc...
in dx9 i was able improve shader loading time by using .fxo files but am wondering if this is possible to do with hlsl files, information seems scarse on this or maybe I'm just missing the understanding of it comming into dx11.
does anyone know how to increase speed on the creation of shaders in hlsl shader model 5, is it just the compiling that is taking the time, is it possible to precompile? if so how can I assign the precompiled data to a blob as it doesn't seem like that's possible but maybe I'm just not understanding something as I'm a bit green coming into dx11 from dx9. and
I'd like to stay away from the effect file (.fx) if possible as I'm liking the way the hlsl files are currently layed out but will change if it's the only way to get the speed up.
thanks for any advice on this.