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

Package: Scriptable Render Pipeline Universal

-

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

  1. 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

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.