• Create Account

vs 2013 hlsl compiler output path

3 replies to this topic

#1belfegor  Members

Posted 23 July 2014 - 12:58 PM

In my project settings i have set "Output directory" to "../Bin" folder, now i need to set output path for my shaders using HLSL Compiler as par of the build process, so i want my output shaders to be in "Bin/data/shaders/" folder but dont know what is the sintaks for this:

I have looked on MSDN help for Property Pages but cannot see example how should i do this.

Posted 23 July 2014 - 01:44 PM

$(OutDir) will include the trailing slash, so you should be able to just set it to$(OutDir)data\shaders\%(Filename).pso.  You can set this per shader, or you could set a default for all new and existing shaders by going to the properties for the project instead of the shader and changing the same setting from there. If you want to generate a certain extension for each compiled shader type (like .vso and .pso) and your non compiled shaders use .vs and .ps, then you should be able to do something like this \$(OutDir)data\shaders\%(Filename)%(Extension)o

Edited by megadan, 23 July 2014 - 01:46 PM.

#3belfegor  Members

Posted 23 July 2014 - 02:00 PM

Thank you very much.