コード例 #1
0
        internal static void Index3EntryPointKernel(
            Index3 index,
            ArrayView <int> output,
            Index3 extent)
        {
            var linearIndex = index.ComputeLinearIndex(extent);

            output[linearIndex] = linearIndex;
        }
コード例 #2
0
            public void InstanceKernel(Index3 index, ArrayView <int> output, Index3 extent)
            {
                var linearIndex = index.ComputeLinearIndex(extent);

                output[linearIndex] = NestedFunction(linearIndex);
            }