Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
参考这里的答案,如何在 XNA 项目中编译 fx 文件的 Visual Studio 2010 中为 HLSL 编译器设置标签 [branch]?
与链接文档 ( doc ) 一样,您可以直接在 if 之前编写这些提示。你不需要全局告诉编译器一些东西。