On 8/1/2018 at 11:52 AM, Fulcrum.013 said:
Where same it show a whole array contents? I am using VS 2017 with default preview options. For C++ it shows array definition only, but not a contents for similar arrays
I have only seen VS display them for global compile time constant arrays, which if the OP tried to embed the compiled shader in a C/C++ file I assume it is. Not sure why it doesn't for any other array.
A "solution", would be to put something anywhere in the array that VS can't determine, or just hide it behind a layer of indirection (e.g. put it in a ".cpp" then use extern). But I think its better not to try an embed such things directly as C/C++ code.
On 7/12/2018 at 12:14 PM, vinterberg said:
You could also add your shaders directly in your project, they will be compiled to .cso files. Then you can add a post-compiler event that copies the .cso files to your own folder, if they're found to be newer. That's what I do anyways, works great for me
If the default location is not suitable (generally next to the exe, using "$(OutDir)%(Filename).cso") you can change it in HLSL Compiler -> Output Files, no need to have a post-build step.