int_2::int_2 建構函式

預設建構函式,初始化所有元素為 0 。

int_2() restrict(amp,cpu);
int_2(
   int _V0,
   int _V1
) restrict(amp,cpu);
int_2(
   int _V
) restrict(amp,cpu);
int_2(
   const int_2& _Other
) restrict(amp,cpu);
explicit inline int_2(
   const uint_2& _Other
) restrict(amp,cpu);
explicit inline int_2(
   const float_2& _Other
) restrict(amp,cpu);
explicit inline int_2(
   const unorm_2& _Other
) restrict(amp,cpu);
explicit inline int_2(
   const norm_2& _Other
) restrict(amp,cpu);
explicit inline int_2(
   const double_2& _Other
) restrict(amp,cpu);

參數

  • _V0
    用來初始化項目 0 的值。

  • _V1
    用來初始化項目 1 的值。

  • _V
    用來初始化的值。

  • _Other
    用來初始化的物件。

需求

標頭: amp_short_vectors.h

命名空間: Concurrency::graphics

請參閱

參考

int_2 類別