Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[ver. Unity 2017.1] About TextureFormat.RG16

Discussion in 'General Graphics' started by littleherry, Jul 18, 2017.

  1. littleherry

    littleherry

    Joined:
    Jul 7, 2017
    Posts:
    1
    Hi guys,

    When I created the texture with "new Texture2D(512, 512, TextureFormat.RG16, false)",
    I got those error in Playing Application Time:

    d3d11: failed to create 2D texture id=6289 width=512 height=512 mips=1 dxgifmt=0 [D3D error was 80070057]
    d3d11: failed to create 2D texture shader resource view id=6289 [D3D error was 80070057]
    Assertion failed: d3d11: Failed to create 2D texture in GfxDeviceD3D11

    I had tried to check the support with "SystemInfo.SupportsTextureFormat(TextureFormat.RG16)",
    but the return value is "true".

    In fact, I ever normally created the texture with the same method in Unity 5.6.2.
    Do I miss to setup any settings ?

    OS: Windows10 64bit
    Graphic Card: AMD R290

    Thanks.