Example #1
0
        internal static void Index3EntryPointKernel(
            Index3D index,
            ArrayView1D <int, Stride1D.Dense> output,
            Index3D extent)
        {
            var linearIndex = index.ComputeLinearIndex(extent);

            output[linearIndex] = linearIndex;
        }
Example #2
0
            public void InstanceKernel(
                Index3D index,
                ArrayView1D <int, Stride1D.Dense> output,
                Index3D extent)
            {
                var linearIndex = index.ComputeLinearIndex(extent);

                output[linearIndex] = NestedFunction(linearIndex);
            }