Search Unity

Bug Compute Shader Compilation Error on project upgrade

Discussion in 'Editor & General Support' started by RippStudwell, Dec 1, 2021.

  1. RippStudwell

    RippStudwell

    Joined:
    May 16, 2017
    Posts:
    3
    I'm getting this error when upgrading my project from Unity 2020.3.1f1 to Unity 2021.2.4f1. I did what was suggested in this related post and upgraded again from Unity 2021.2.4f1 to Unity 2022.1.0a16 and the error still persisted.

    Exception: Compute Shader compilation error on platform 25 in file E:/Code/Fantasma/Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.1/Runtime/ShaderLibrary/ShaderVariables.hlsl:6: Couldn't open include file 'Packages/com.unity.render-pipelines.high-definition-config/Runtime/ShaderConfig.cs.hlsl'.
    HDRP will not run until the error is fixed.

    UnityEngine.Rendering.HighDefinition.HDRenderPipelineGlobalSettings.EnsureShadersCompiled () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/RenderPipeline/HDRenderPipelineGlobalSettings.cs:434)
    UnityEngine.Rendering.HighDefinition.HDRenderPipeline..ctor (UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset asset) (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/RenderPipeline/HDRenderPipeline.cs:329)
    UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset.CreatePipeline () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/RenderPipeline/HDRenderPipelineAsset.cs:37)
    UnityEngine.Rendering.RenderPipelineAsset.InternalCreatePipeline () (at <07ebe93a786046b9b38c092a9fd1fcb0>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. RippStudwell

    RippStudwell

    Joined:
    May 16, 2017
    Posts:
    3
    It may or may not be worth noting that both the ShaderVariables.hlsl and ShaderConfig.cs.hlsl are identical between my hdrp project that I upgraded to Unity 2022 and a brand new hdrp project in Unity 2022
     
  3. mikelortega

    mikelortega

    Joined:
    Feb 5, 2014
    Posts:
    47
    I'm having the same problem upgrading from 2022.1.20f1 to 2022.1.22f1 ¿Did you manage to make it work?
     
    Karimchik likes this.
  4. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    592
    same issue today any idea how to fix it ?
     
  5. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    332
    Same issue after updating from 2021.3.6f1 to 2021.3.21f1 today.