Search Issue Tracker
Fixed in 10.1.0
Fixed in 7.5.2, 8.3.1
Votes
1
Found in [Package]
7.2.1
Issue ID
1222676
Regression
No
The error occurs when a Render Texture, which has a certain Color Format, is applied to the Camera's Output Target
How to reproduce:
1. Open the project "case_1222676-URPcamera"
2. Open the scene "SampleScene"
3. Select the GameObject "Main Camera" in the Hierarchy
4. Drag "New Render Texture" from the Project window to the Texture field in the Output module in the Camera component of the Inspector
5. Observe the results in the Console window
Expected results: there are no errors in the Console window
Actual results: there are errors "Assertion failed on expression: 'graphicsFormat != kFormatNone" in the Console window
Reproducible with: 7.1.2 (2019.3.0b4, 2019.3.3f1, 2020.1.0a25), 7.2.1 (2019.3.3f1, 2020.1.0a25, 2020.2.0a1)
Could not test with: LWRP (2017.4.37f1, 2018.4.18f1), 7.1.1 because the Camera component does not have the Output module
Notes:
1. It is reproducible only with the Camera component which has additional URP properties
2. It is not reproducible with HDRP and Default RP
3. It is reproducible with any Dimension of the Render Texture
4. It is reproducible with these Color Formats of the Render Texture:
SNORM formats,
UINT formats (except R16G16B16A16_UINT),
SINT formats (except formats with 32-bit components)
and
R4G4B4A4_UNORM_PACK16,
R5G6B5_UNORM_PACK16,
R5G5B5A1_UNORM_PACK16,
A1R5G5B5_UNORM_PACK16
-
unity_299B2B77BFFAD3FCF88C
Nov 21, 2023 16:34
This is happening for me in URP 14.0.9, and it doesn't matter which Color Format or Depth Stencil Format I choose
-
veggiesama
Sep 13, 2020 00:35
I fixed the error messages by changing the Color Format of all my Render Textures from R8G8B8A8_SNORM to R32G32B32A32_SFLOAT.
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
- Graphics.DrawMeshInstanced does not work when 2D Renderer and 2D Shaders are used
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
Resolution Note (fix version 10.1.0):
The error will no longer occur if the render texture isn't supported.
Resolution Note (fix version 8.3.1):
Fixed in - URP 8.3.1
Resolution Note (fix version 7.5.2):
Fixed in - URP 7.5.2