locked
[WP8.1][C++/CX]CreateTexture3D exception on a Windows Phone 8.1 app on Lumia 1520 RRS feed

  • Question

  • I've developed a Windows Phone 8.1 app using DirectX and XAML. I test it on a Lumia 1520 with Windows Phone 8.1 OS. The app crashes when the function CreateTexture3D is executed:

    First-change exception at 0x776535D7 in WEWP.exe: Microsoft C++ exception: Platform::InvalidArgumentException^ at memory location 0x01ECF094. HRESULT 0x80070057 The parameter is incorrect.

    WinRT information: The parameter is incorrect.

    As the call to CreateTexture3D succeeds on a Windows 8.1 app on my development machine which supports DirectX feature level 11.0, I suspect the reason of the exception is that CreateTexture3D API is not supported by DirectX feature level 9.3. But I cannot verify this by online search. I hope someone may help, thanks.



    • Edited by David_FF Thursday, December 22, 2016 6:03 PM title tag
    Wednesday, December 14, 2016 8:33 AM

Answers

  • Direct3D Feature Level 9.3 can support volume textures, but only in limited formats and sizes compared to Direct3D Feature Level 11.0. See MSDN.

    • On feature level 9.3, maximum width/height/depth for a volume texture is D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (256). On 10.0 or later, it is D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048).
    • The formats you can use for 9.3 are covered here as compared to 11.0 here.
    • Marked as answer by Leonard Thursday, December 15, 2016 7:06 AM
    Wednesday, December 14, 2016 5:43 PM

All replies

  • Direct3D Feature Level 9.3 can support volume textures, but only in limited formats and sizes compared to Direct3D Feature Level 11.0. See MSDN.

    • On feature level 9.3, maximum width/height/depth for a volume texture is D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (256). On 10.0 or later, it is D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION (2048).
    • The formats you can use for 9.3 are covered here as compared to 11.0 here.
    • Marked as answer by Leonard Thursday, December 15, 2016 7:06 AM
    Wednesday, December 14, 2016 5:43 PM
  • Thank you very much Chuck. I thought you've left Microsoft as Nedella tried to kill Windows Phone. It's nice to see you're still here.
    Thursday, December 15, 2016 7:11 AM