texture_view::operator= 运算符

将纹理与指定的 texture_view 一样的视图分配给该 texture_view 实例。

texture_view<_Value_type, _Rank>& operator=(        // [1] copy constructor
   const texture_view<_Value_type, _Rank>& _Other
) restrict(amp, cpu);

texture_view<const _Value_type, _Rank>& operator=(  // [2] copy constructor
   const texture_view<_Value_type, _Rank>& _Other
) restrict(cpu);

texture_view<const _Value_type, _Rank>& operator=(  // [3] copy constructor
   const texture_view<const _Value_type, _Rank>& _Other
) restrict(amp, cpu);

参数

  • _Other

    • [1,2] 复制构造函数
      可写的 texture_view 对象。

    • [3] 复制构造函数
      非可写的 texture_view 对象。

返回值

对此 texture_view 实例的引用。

要求

**标头:**amp_graphics.h

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

请参见

参考

texture_view 类