texture_view::get 方法

获取指定索引处的元素的值。

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

value_type get(
   const index<_Rank>& _Index,
   unsigned int _Mip_level = 0
) const restrict(amp);

参数

  • _Index
    获取元素的索引,可能是多维的。

  • _Mip_level
    我们应获取该值的 mipmap。 默认值 0 表示最详细的 mipmap 级别。

返回值

元素的值。

要求

**标头:**amp_graphics.h

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

请参见

参考

texture_view 类