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

Package: Shader Graph

-

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)

  1. DongJooByun

    Mar 21, 2020 20:17

    Does it mean that we can access the "unity_InstanceId", in shadergraph?

  2. CameronE1

    Nov 22, 2019 18:58

    Yeah after having turned off instancing on all our materials it looks like re-activating them works

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

  4. MattMurch

    Nov 21, 2019 03:14

    Just grabbed the 7.1.5 update, still getting " redefinition of 'unity_Builtins2Array'" from shadergraph shaders

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

  6. 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?

  7. ivo-alves

    Nov 09, 2019 19:46

    When will 7.1.3 be available ? Is there a roadmap for packages as well?

  8. LeonhardP

    Nov 07, 2019 08:56

    The fix has been backported to 7.1.3 as well, which will be available for 2019.3.

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

  10. 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?

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.