I am trying to figure out a good strategy to dynamically load shader files into my DirectX 11 engine, but that doesn't seem to be working out too well. I have made my own method to scan a directory and its sub-directories, but I guess that doesn't work either. (I'm a bit rusty, evidently.)
Does anybody have any tips/snippets to how I could possibly achieve such a feature. I am looking to load both .vs and .ps files, basically on build/run, but if you have a good way to load them asynchronously, that would be great!