// Use this for initialization
 private void Start()
 {
     reduser = new GpuReduce(shader);
 }
Example #2
0
    public void SetUp()
    {
        var shader = AssetDatabase.LoadAssetAtPath <ComputeShader>("Assets/Reduce/Shaders/GpuReduce.compute");

        reducer = new GpuReduce(shader);
    }