private void RunKernel() { var groupSize = BufferUtil.GetThreadGroupSizes(compute, mainKernel); var groups = new IntVector3(rentex.width, rentex.height, 1) / groupSize; compute.Dispatch(mainKernel, groups.x, groups.y, groups.z); material.SetTexture("_MainTex", rentex); display.material = material; widgetDisplay.mat = material; widgetDisplay.tex = rentex; }