Jump to content

  • Log In with Google      Sign In   
  • Create Account


How do I turn off FXC in Visual Studio 2012


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 mrheisenberg   Members   -  Reputation: 356

Like
0Likes
Like

Posted 11 November 2012 - 01:39 PM

I have some shaders that are unfinished and I'm not using them anywhere in the program,but they're part of the project and Visual Studio gives me a

1>FXC : error X3501: 'main': entrypoint not found

why would it even ask me that,and since my shaders are compiled at run-time,why would FXC even activate during build time.How do I turn it off,I don't wanna keep removing/adding files to the project each time I build,just so this error wouldn't appear.

Sponsor:

#2 MJP   Moderators   -  Reputation: 11038

Like
0Likes
Like

Posted 11 November 2012 - 09:38 PM

It's asking you because VS 2012 has a MSBuild step for .hlsl files that compiles them with the shader compiler. If you right-click on the shader file in your project and go to the properties, you can exclude the file from the build process.

Edited by MJP, 11 November 2012 - 09:39 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS