Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

vs 2013 hlsl compiler output path

4: Adsense
  • You cannot reply to this topic
3 replies to this topic

#1 belfegor   Members   

2833
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.



#2 megadan   GDNet+   

786
Like
2Likes
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   Members   

2833
Like
0Likes
Like

Posted 23 July 2014 - 02:00 PM

Thank you very much. smile.png



#4 megadan   GDNet+   

786
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.