开发者

Validate HLSL file at compile time in Visual Studio

开发者 https://www.devze.com 2023-04-04 02:42 出处:网络
I\'m looking for an easy way of detecting errors in HLSL file at program compile time from visual studio. I want to add a custom build to my shader files that compiles them and make sure the build fai

I'm looking for an easy way of detecting errors in HLSL file at program compile time from visual studio. I want to add a custom build to my shader files that compiles them and make sure the build fail if I did something stupid like referring an undefined variable or other things that otherwise would be detected when compiling the shader in the 开发者_StackOverflow社区application.

Have anyone successfully setup this before?


Note that VS2012 has automatic compilation of shader files.


For anyone coming by, here's a handy (and more wordy) guide on how to do it in VS2010:

http://takinginitiative.net/2011/02/19/debugging-hlsl/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号