visual-studio-2010 - XNA 4.0 Visual Studio 2010错误

标签 visual-studio-2010 xna compiler-errors xna-4.0 xna-3.0

当我尝试编译解决方案时,出现以下错误

error x3539 ps_1_x is no longer supported

(68,23); ID3DXEffectCompiler;;CompileEffect: There was an error compiling expression ID3DXEffectCompiler: compilation failed


我认为这与我使用的XNA和visial Studio版本有关,因为该代码是在visual studio 2008上创建的,并且使用了XNA 3.0,但是现在我有了xna 4.0和visual studio 2010。
有人可以帮助我解决这个错误吗?

最佳答案

您需要将着色器从ps_1_1切换到ps_2_0。既然您没有提供任何资源,那么... see the XNA 3.1 to XNA 4.0 cheat sheet for more information.祝您好运!

关于visual-studio-2010 - XNA 4.0 Visual Studio 2010错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10179226/

相关文章:

visual-studio - 禁用 Visual Studio 项目以使用 cmake 进行构建

c++ - 为什么会出现运行时检查失败错误?

c# - 编写 .x 文件

typescript - 实现编译器不跟随的链

php - 尝试根据 android 应用程序上的值从 mysql 中获取数据

visual-studio-2010 - 无法解析主要引用,因为它是针对比当前目标框架更高的版本构建的

visual-studio-2010 - 从 Visual Studio 2010 项目文件为多个框架目标构建 NuGet 包

c# - 将 WP7 游戏成就从 XNA 发布到 Facebook

c# - 在 XNA 中重用游戏对象是否有意义?

Kotlin 编译器显示编译错误并建议 "change type from ' T' 到 'T"' 而上下文中只有一个 T