Search Issue Tracker
By Design
By Design in 2023.1.X
Votes
0
Found in
2020.3.34f1
2021.3.1f1
2022.1.0f1
2022.2.0a11
2023.1.0a17
Issue ID
UUM-2510
Regression
No
[macOS] Graphics.CopyTexture failed when source texture is compressed using astc
How to reproduce:
1. Open the user's attached "TestCopyTexture.zip" project
2. Open the Scene "SampelScene"
3. Enter the Play Mode
Expected results: No errors are thrown, a texture is copied onto the gray square
Actual results: The texture is not copied and "Graphics.CopyTexture called with incompatible formats" is thrown
Reproducible with: 2019.4.38f1, 2020.3.34f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11
Note:
- Does not reproduce on Windows
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
Graphics.CopyTexture does no scaling and is intended to be used between textures of the same format groups (see https://docs.unity3d.com/ScriptReference/Graphics.CopyTexture.html for more details). ASTC compressed format and RGBA32 (uncompressed) are not compatible due to their different block sizes. The copy will work as expected if the source image is uncompressed, or if the target texture is created to use the same ASTC format, regardless of platform.
Resolution Note (2023.1.X):
Graphics.CopyTexture does no scaling and is intended to be used between textures of the same format groups (see https://docs.unity3d.com/ScriptReference/Graphics.CopyTexture.html for more details). ASTC compressed format and RGBA32 (uncompressed) are not compatible due to their different block sizes. The copy will work as expected if the source image is uncompressed, or if the target texture is created to use the same ASTC format, regardless of platform.