Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

MultiScaleVODownsample1.compute: Kernel at index {0} is invalid

Discussion in 'Shaders' started by abdullahwasif9, Feb 17, 2021.

  1. abdullahwasif9

    abdullahwasif9

    Joined:
    Jan 8, 2021
    Posts:
    4
    Hi!
    I'm new to Unity, and while working on a project I have suddenly started getting these errors, and although they don't affect enabling play mode, I would like to know what is causing these errors and how to fix them.
    Any help would be greatly appreciated!


    MultiScaleVODownsample1.compute: Kernel at index (0) is invalid
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)



    IndexOutOfRangeException: Invalid kernelIndex (1) passed, must be non-negative less than 4.
    UnityEngine.Rendering.PostProcessing.MultiScaleVO.PushRenderCommands (UnityEngine.Rendering.CommandBuffer cmd, System.Int32 source, System.Int32 destination, UnityEngine.Vector3 sourceSize, System.Single tanHalfFovH, System.Boolean isMSAA) (at C:/Users/abdul/AppData/Local/Temp/929f68967ccf8424f9c7f4459205b507/Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/Effects/MultiScaleVO.cs:371)
    UnityEngine.Rendering.PostProcessing.MultiScaleVO.GenerateAOMap (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Camera camera, UnityEngine.Rendering.RenderTargetIdentifier destination, System.Nullable`1[T] depthMap, System.Boolean invert, System.Boolean isMSAA) (at C:/Users/abdul/AppData/Local/Temp/929f68967ccf8424f9c7f4459205b507/Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/Effects/MultiScaleVO.cs:172)
    UnityEngine.Rendering.PostProcessing.MultiScaleVO.RenderAmbientOnly (UnityEngine.Rendering.PostProcessing.PostProcessRenderContext context) (at C:/Users/abdul/AppData/Local/Temp/929f68967ccf8424f9c7f4459205b507/Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/Effects/MultiScaleVO.cs:519)
    UnityEngine.Rendering.PostProcessing.PostProcessLayer.BuildCommandBuffers () (at C:/Users/abdul/AppData/Local/Temp/929f68967ccf8424f9c7f4459205b507/Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/PostProcessLayer.cs:561)
    UnityEngine.Rendering.PostProcessing.PostProcessLayer.OnPreCull () (at C:/Users/abdul/AppData/Local/Temp/929f68967ccf8424f9c7f4459205b507/Library/PackageCache/com.unity.postprocessing@2.3.0/PostProcessing/Runtime/PostProcessLayer.cs:462)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
     
  2. abdullahwasif9

    abdullahwasif9

    Joined:
    Jan 8, 2021
    Posts:
    4
    I have somehow managed to fix this by reimporting the built-in Shaders in Packages > Post Processing.
     
  3. D4NI

    D4NI

    Joined:
    Nov 1, 2021
    Posts:
    1
    Thanks