예제 #1
0
        internal ManagedArray2(ManagedDeviceArrayPool pool, int beginIndex, int size1, int size2) :
            base(pool, beginIndex, size1 * size2)
        {
            Debug.Assert(size1 > 0);
            Debug.Assert(size2 > 0);

            Size1 = size1;
            Size2 = size2;
        }
예제 #2
0
        internal ManagedArray(ManagedDeviceArrayPool pool, int beginIndex, int size)
        {
            Debug.Assert(size > 0);
            Debug.Assert(beginIndex >= 0);
            Debug.Assert(pool != null);

            this.pool = pool;
            BeginIndex = beginIndex;
            Size = size;
        }