Search Unity

Question RenderTexture.Create failed: depth/stencil format unsupported - D16 UNorm (90)

Discussion in 'General Graphics' started by dev_noorgames, Feb 1, 2024.

  1. dev_noorgames

    dev_noorgames

    Joined:
    Oct 16, 2023
    Posts:
    3
    When using RenderTextures, I get such an error on some iOS devices.
    RenderTexture.Create failed: depth/stencil format unsupported - D16 UNorm (90). There is no compatible format on this platform or this fallback to a compatible format is disabled in the import inspector.
    In unity documentation, it is written that

    RenderTexture will automatically try to use a compatible format with more bits. If the format is not supported and when no compatible format is found on this platform then the original format will be returned. This fallback to a compatible format can be disabled on a RenderTexture asset in the inspector.

    https://docs.unity3d.com/ScriptReference/RenderTexture-depthStencilFormat.html

    However, I could not find how this fallback enable/disable is done to check what it is set in RenderTextures that I am using. Any info about this?
     

    Attached Files: