texture::operator() 运算符

返回参数指定的元素值。

const value_type operator() (
   const index<_Rank>& _Index
) const restrict(amp);

const value_type operator() (
   int _I0
) const restrict(amp);

const value_type operator() (
   int _I0,
   int _I1
) const restrict(amp);

const value_type operator() (
   int _I0,
   int _I1,
   int _I2
) const restrict(amp);

参数

  • _Index
    索引。

  • _I0
    索引的最高有效组件。

  • _I1
    索引的接近最高有效组件。

  • _I2
    索引的最低有效组件。

  • _Rank
    索引的秩。

返回值

由参数指定的元素值。

要求

**标头:**amp_graphics.h

**命名空间:**Concurrency::graphics

请参见

参考

texture 类