Search Issue Tracker
Fixed in 8.0.0
Votes
10
Found in [Package]
8.0.0
Issue ID
1184870
Regression
Yes
[UniversalRP] Shader compilation error when using GPU instancing
To reproduce:
1. Open the attached project;
2. Upgrade SRP packages to master branch;
3. Open "New Scene";
4. Make sure GPU instancing is enabled on Interceptor material;
5. Reimport RaceBoats shadergraph;
6. Check the console;
- the error is thrown
7. Disable GPU instancing on Interceptor material;
8. Reimport the RaceBoats shadergraph;
9. Check the console
Result: The error is thrown when GPU instancing is enabled: Shader error in 'BoatAttack/RaceBoats': redefinition of 'unity_Builtins2Array' at /<...>/ScriptableRenderPipeline/com.unity.render-pipelines.universal/ShaderLibrary/UnityInput.hlsl(114) (on metal)
Compiling Vertex program with UNITY_PASS_SHADOWCASTER INSTANCING_ON
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_RGBM_ENCODING
Reproduced with: 8.0.0 SRP package + 2020.1.0a5
Comments (17)
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
- ”Last item reached” warning is thrown when no search results are found in UI Toolkit Layout Debugger
- UI Elements overlap in the Shortcuts window when docked and resized to a smaller window size
- UIBuilder DataSourcePath dropdown fails to show properties when binding to abstract classes
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
DongJooByun
Mar 21, 2020 20:17
Does it mean that we can access the "unity_InstanceId", in shadergraph?
CameronE1
Nov 22, 2019 18:58
Yeah after having turned off instancing on all our materials it looks like re-activating them works
MattMurch
Nov 21, 2019 06:21
Fixed! After getting 7.1.5, then re-importing all assets, the error has stopped showing. I'm not sure if this is how your supposed to get the fix to work, but it worked for now.
MattMurch
Nov 21, 2019 03:14
Just grabbed the 7.1.5 update, still getting " redefinition of 'unity_Builtins2Array'" from shadergraph shaders
CameronE1
Nov 18, 2019 20:04
So I am looking at our project with URP 7.1.5 and still getting this issue, using 2019.3b10
MattMurch
Nov 15, 2019 16:59
Glad this is being fixed in 7.1.3, thank you for moving that up! Is there an ETA for that release?
ivo-alves
Nov 09, 2019 19:46
When will 7.1.3 be available ? Is there a roadmap for packages as well?
LeonhardP
Nov 07, 2019 08:56
The fix has been backported to 7.1.3 as well, which will be available for 2019.3.
FixItFelix
Nov 06, 2019 13:29
Can someone re-open this bug or make a re-submission? I am not sure if the comments on a fixed bug are ever read.
FixItFelix
Nov 06, 2019 11:40
In 2019.3 I can not get Shader Graph 8.0.0. Will they be a fix for 7.1.2?