2011-09-11 31 views
2

我有一個華碩Eee PC與英特爾GMA 3150圖形卡,操作系統是Windows 7啓動器,並安裝DirectX 11。XNA 4.0與英特爾GMA 3150圖形卡

當我跑我的項目,它採用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的所有要求。那麼什麼是錯的?

回答

2

你應該嘗試從HiDef改變XNA配置文件來達到 您將rightclicking該項目發現,設置 - >性能

5

英特爾GMA 3100和3150僅支持XNA的河段輪廓。

此外,您將不得不重構一些代碼,因爲在設置配置文件以在屬性中達到之後,您可能會收到一些編譯錯誤。

觀光特別注意:

  • 你的硬件只支持Shader Model 2.0支持的。如果您使用的是任何3.0着色器,則需要編譯VS_2_0和PS_2_0

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

  • 只有一個渲染目標可以在同一時間(所以沒有花哨的延遲渲染在這裏)

Here's a list被吸引到比較什麼是到達率曲線的支持有限。 (順便說一下,你的硬件不能直接運行DirectX 11,它只能使用一個參考設備,並且運行速度會很慢)