- Home /
Question by
kaiyum · Mar 10, 2017 at 03:55 PM ·
shadergraphicscompute shader
Compute shader FindKernel() fails with unity exception
So the shader code is here: http://pastebin.com/Tbgu7UvH
And the script is here: http://pastebin.com/r19BV1Rh
If I try to find the only kernel that I have, I get this:
Kernel 'CSMain' not found
UnityEngine.ComputeShader:FindKernel(String)
Controller:Start() (at Assets/Controller.cs:10)
and
UnityException: FindKernel failed
Controller.Start () (at Assets/Controller.cs:10)
If I try to Dispatch directly by index such as this:
shader.Dispatch(0, 1, 1, 1);
Then I receive this error:
Kernel index (0) out of range
UnityEngine.ComputeShader:Dispatch(Int32, Int32, Int32, Int32)
Comment