總結翻譯成「假參數」:讓我的一個遊戲中的淡入淡出效果,突然收到此錯誤信息:最新消息創建RenderTarget2D
SharpDX.SharpDXException
類型的未處理的異常出現在SharpDX.dll
附加信息:
HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: Felaktig parameter. (Last message translated into False Paramater
教程中,我看:https://www.youtube.com/watch?v=krQZqPO0arQ
renderTarget = new RenderTarget2D(Game1.graphics.GraphicsDevice, (int)dimensions.X, (int)dimensions.Y);
我們需要比一行代碼更多的信息來幫助你:)。當您在監視窗口中鍵入或使用鼠標懸停在其上時,「Game1.graphics.GraphicsDevice」,「(int)dimensions.X'和」(int)dimensions.Y'的值是什麼? –
爲了:{Microsoft.Xna.Framework.Graphics.GraphicsDevice} 0,0 0,0 – user5576053