コード例 #1
0
        /// <summary>
        /// Loads at specific address with mipmap and offset.
        /// </summary>
        public T Load([NotNull] Integerx4 position, Integerx3 offset)
        {
            if (position.Generator != this.Generator ||
                ((object)offset != null && offset.Generator != this.Generator))
            {
                throw new ArgumentException("Mixing generators not allowed.");
            }

            LoadOperation op = new LoadOperation();

            if ((object)offset != null)
            {
                op.BindInputs(pin, position.Pin, offset.Pin);
            }
            else
            {
                op.BindInputs(pin, position.Pin);
            }
            return((T)this.Generator.CreateFrom(op.Outputs[0]));
        }