Jump to content

  • Log In with Google      Sign In   
  • Create Account


vs 2013 hlsl compiler output path

  • You cannot reply to this topic
3 replies to this topic

#1 belfegor   Crossbones+   -  Reputation: 2554

Like
0Likes
Like

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:

 

propertypage.jpg

 

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



Sponsor:

#2 megadan   Members   -  Reputation: 450

Like
1Likes
Like

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.


#3 belfegor   Crossbones+   -  Reputation: 2554

Like
0Likes
Like

Posted 23 July 2014 - 02:00 PM

Thank you very much. smile.png



#4 megadan   Members   -  Reputation: 450

Like
1Likes
Like

Posted 23 July 2014 - 02:03 PM

Also if you want to see all the available macros and what they evaluate to, click on the drop arrow that appears next to the Object File Name textbox, click <Edit...>, then click Macros.







PARTNERS