Graphics

Reply

Level 2

Level 2
Retr0Zelda
Posts: 37
Registered: ‎15-07-2012
Message 1 of 5 (367 Views)

Texture2D() exception

I am getting a "native function returned error" exception when I create a new Texture2D.

 

 

string szFullPath = "/Application/Resources/Textures/" + szName;
tex.Texture = new Texture2D(szFullPath, false);
			

 

my output window:

Unhandled Exception: Sce.PlayStation.Core.GraphicsSystemException: native function returned error.


  at Sce.PlayStation.Core.Error.ThrowNativeException (Int32 error) [0x00000] in <filename unknown>:0 


  at Sce.PlayStation.Core.Graphics.Texture..ctor (PixelBufferType type, System.String fileName, Boolean mipmap, PixelFormat format) [0x00000] in <filename unknown>:0 


  at Sce.PlayStation.Core.Graphics.Texture2D..ctor (System.String fileName, Boolean mipmap) [0x00000] in <filename unknown>:0 


  at TestEngine.CTextureManager.LoadTexture (System.String szName) [0x00000] in <filename unknown>:0 

 

Does anyone have any ideas why I am getting this?

 

Please use plain text.

Re: Texture2D() exception

Hi:

 

Did you check your texture build action to content?

 

Cheers,

Please use plain text.

Level 2

Level 2
Retr0Zelda
Posts: 37
Registered: ‎15-07-2012
Message 3 of 5 (349 Views)

Re: Texture2D() exception

turn out i just had to reinstall the suite :/

Please use plain text.

Re: Texture2D() exception

Hi:

 

Tha's fix the problem then?

 

Cheers,

Please use plain text.

Re: Texture2D() exception

Hi Retr0Zelda,

Please let us know if you come across the problem again.

Best regards,
James
PlayStation®Mobile Dev Team
Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News