共用方式為


sampler::operator= 運算子

指派另一取樣器物件的值給現有取樣器。

sampler& operator=(        // [1] copy assignment operator
   const sampler& _Other
) restrict(amp, cpu);

sampler& operator=(        // [2] move assingment operator
   sampler&& _Other
) restrict(amp, cpu);

參數

  • _Other

    • [1] 複製指派運算子
      要複製到此 sampler 中的 sampler 物件。

    • [2] 移動指派運算子
      要移動至此 sampler 中的 sampler 物件。

傳回值

此取樣器執行個體的參考。

需求

**標頭:**amp_graphics.h

**命名空間:**concurrency::graphics

請參閱

參考

sampler 類別