Search Issue Tracker

Feature Request

Votes

0

Found in

2020.3.40f1

2021.3.11f1

2022.1.18f1

2022.2.0b9

2023.1.0a12

Issue ID

UUM-15527

Regression

No

"Texture creation failed" error when using Integer texture formats

--

-

Reproduction steps:
1. Open the user’s attached project “ticket-1358812-decal-dbuffer.zip”
2. Enter Play mode

Expected result: The multicoloured texture loads on the Plane, no errors are thrown
Actual result: The Plane remains blue, an error is thrown even though the texture isn’t used to Sample:
“Texture creation failed. 'R16G16B16A16_UInt' is not supported for Sample usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.”

Reproducible with: 2020.3.40f1, 2021.3.11f1, 2022.1.18f1, 2022.2.0b9, 2023.1.0a12

Reproducible on: macOS 12.4 (Intel)

  1. Resolution Note:

    After internal discussion, we have determined that this bug case would be better tackled as a feature request instead.

    The issue seen in this bug case is, in fact, by design in the sense that it is a known limitation: today, users can choose from a wide variety of GraphicsFormat to attempt Texture creation from script, but creation will only succeed if the chosen GraphicsFormat has a TextureFormat equivalent. If there is no equivalent, the GraphicsFormat is considered to be incompatible with the Sample FormatUsage, even if the user would otherwise have native GPU support.

    In this scenario, compatibility with the Sample FormatUsage can be checked with: SystemInfo.IsFormatSupported(GraphicsFormat.R16G16B16A16_UInt, FormatUsage.Sample).

    We are aware that users would like to be able to use a wider selection of GraphicsFormats for script Texture creation than they can today. You and anyone else who would benefit from this feature should make sure to provide feedback to Unity, so that we may prioritise this feature request appropriately.

    How to check the roadmap and provide feedback: https://forum.unity.com/threads/how-to-check-roadmap-and-provide-feedback.1321341/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.