Hello, I'm working on HLSL shaders with some new features of shader model 5.1. I use D3DCompileFromFile to compile the shader using target "vs_5_1". It actually works well on my laptop, but when it turns to my desktop computer, it gets an exception : "get error X3506: unrecognized compiler target 'vs_5_1'".
I think that might because the "d3dcompiler_47.dll" in "Windows32" folder is too old, it seems that my laptop gets a newer version, but it's actually difficult to replace the file as it is always used by "dwm.exe".
Is this problem solvable? Or it just means my hardware does not support version 5_1? I specified D3D_FEATURE_LEVEL_12_0 when creating the device and it supports the feature level. I think as it's a compile error it should just be a software problem but I cannot find out how to solve it.