Search Issue Tracker
By Design
Votes
0
Found in [Package]
14.0.0
Issue ID
1390210
Regression
No
Graphics.DrawMeshInstancedIndirect API doesn't draw Meshes when the SRP isn't BiRP
How to reproduce:
1. Open the user's attached "URPGPUInstancingTest" project
2. Enter the Play Mode in the "SampleScene 1" Scene
Expected result: Meshes are generated in the Game view without any errors
Actual result: Only one pink Mesh is generated or nothing. In some versions "ArgumentNullException: Value cannot be null." error is additionally thrown. Only one Mesh is generated when generating Meshes with the current SRP-compatible Shader
Reproducible with: 7.7.1 (2019.4.36f1), 10.8.1 (2020.3.31f1), 12.1.5 (2021.2.14f1), 13.1.7 (2022.1.0b7), 14.0.0 (2022.2.0a7)
Notes:
- Reproducible with HD RP
- Not reproducible with BiRP
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
- Silent crash when clicking in Scene View in a specific project
- The Player renders black on a Quest headset when MSAA, Post Processing, and Spacewarm depth submission are enabled
- Graphics Compositor breaks Unity rendering when the "Output Camera" is changed to a scene Camera and one Camera SubLayer is active
- The Editor freezes on RenderGraphViewer.Repaint when entering too many characters in search fields without character limits
- Adding a new SubLayer in Graphics Compositor renders BaseLayer darker and makes it flicker
Resolution Note:
The example in the builtin Unity manual is only designed for use with the Builtin renderer. To make this work in URP you will have to make tweaks to the shader code example. For more information about making a URP compatible shader please see the documentation here: https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest