【问题标题】:XNA 4.0 with Intel GMA 3150 graphic cardXNA 4.0 与 Intel GMA 3150 显卡
【发布时间】:2012-02-03 22:08:58
【问题描述】:

我有一台带有 Intel GMA 3150 显卡的 Asus Eee PC,操作系统是 Windows 7 Starter,安装了 DirectX 11。

当我运行使用 XNA 4.0 的项目时,我在 graphics.ApplyChanges() 处收到以下异常:

Microsoft.Xna.Framework.Graphics.NoSuitableGraphicsDeviceException was unhandled
  Message=Could not find a Direct3D device that supports the XNA Framework HiDef profile.

Verify that a suitable graphics device is installed.

Make sure the desktop is not locked, and that no other application is running in full screen mode.

Avoid running under Remote Desktop or as a Windows service.

Check the display properties to make sure hardware acceleration is set to Full.
  Source=Microsoft.Xna.Framework.Game
  StackTrace:
       at Microsoft.Xna.Framework.GraphicsDeviceManager.FindBestPlatformDevice(Boolean anySuitableDevice)
       at Microsoft.Xna.Framework.GraphicsDeviceManager.FindBestDevice(Boolean anySuitableDevice)
       at Microsoft.Xna.Framework.GraphicsDeviceManager.ChangeDevice(Boolean forceCreate)
       at Microsoft.Xna.Framework.GraphicsDeviceManager.ApplyChanges()
       at XY.Game..ctor(IntPtr drawSurface, Int32 Width, Int32 Height) in XY.cs:line 55
       at XY.Program.Main(String[] args) in XY\Program.cs:line 11
  InnerException:

据我所知,我的显卡支持 XNA Framework 的所有要求。那有什么问题呢?

【问题讨论】:

    标签: xna xna-4.0


    【解决方案1】:

    英特尔 GMA 3100 和 3150 仅支持 XNA 中的 Reach 配置文件。

    此外,您可能不得不重构您的一些代码,因为在属性中将配置文件设置为达到后,您可能会遇到一些编译错误。

    需要特别注意的事项:

    • 您的硬件最高仅支持 Shader Model 2.0。如果您使用任何 3.0 着色器,则需要为 VS_2_0 和 PS_2_0 编译它们

    • 您不能使用某些纹理表面格式。

    • 一次只能绘制一个渲染目标(因此这里没有花哨的延迟渲染)

    Here's a list 比较对 Reach 配置文件支持的限制。

    (顺便说一下,你的硬件不能直接运行 DirectX 11,它只能使用参考设备,运行速度会很慢)

    【讨论】:

      【解决方案2】:

      您应该尝试将 XNA 配置文件从 HiDef 更改为 Reach 您将通过右键单击项目 -> 属性来找到该设置

      【讨论】:

        猜你喜欢
        • 2011-03-29
        • 2011-09-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-02-21
        • 1970-01-01
        相关资源
        最近更新 更多