Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

What's the right bundling procedure? (getting KSampleCopy4_1_x_8 error)

Discussion in 'Graphics Experimental Previews' started by garryjnewman, Jun 26, 2019.

  1. garryjnewman

    garryjnewman

    Joined:
    Sep 11, 2015
    Posts:
    33
    We're getting this error in our builds on 2019.1.8

    Code (CSharp):
    1. Kernel 'KSampleCopy4_1_x_8' not found
    2. System.ArgumentException: Kernel 'KSampleCopy4_1_x_8' not found.
    3.   at (wrapper managed-to-native) UnityEngine.ComputeShader.FindKernel(UnityEngine.ComputeShader,string)
    4.   at UnityEngine.Experimental.Rendering.GPUCopy..ctor (UnityEngine.ComputeShader shader) [0x0000d] in <8921501ec9294378b2e9e4fba82d7e6e>:0
    5.   at UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline..ctor (UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset asset) [0x0030c] in <8921501ec9294378b2e9e4fba82d7e6e>:0
    6.   at UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset.CreatePipeline () [0x00002] in <8921501ec9294378b2e9e4fba82d7e6e>:0
    I suspect this is down to how we're bundling up.

    Should the HDRP asset be in resources or a bundle? Should we be generating shader variants or something to get it to find this shader?

    Or is it irrelevant and there's another good reason for getting this error?
     
    Last edited: Jun 28, 2019
  2. garryjnewman

    garryjnewman

    Joined:
    Sep 11, 2015
    Posts:
    33
    For anyone else that hits this problem - I've (seemingly) managed to fix it by adding "-force-driver-type-warp" to the command line on our build server. I tried "-nographics" but the build took 27 hours so I assumed it had infinite looped.