texture_view::operator[] 运算符

通过索引返回元素值。

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

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

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

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

参数

  • _Index
    索引,可能是多维的。

  • _I0
    一维索引。

返回值

由 _Index 编制索引的元素值。

要求

**标头:**amp_graphics.h

**命名空间:**concurrency::graphics

请参见

参考

texture_view 类