| description | Learn more about: int_2 Class | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | int_2 Class | |||||||||||||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||||||||||||||
| f1_keywords |
|
|||||||||||||||||||||||||
| ms.assetid | 258b02e9-f1ee-46c2-8edd-dc9f69184846 |
Represents a short vector of two integers.
class int_2;| Name | Description |
|---|---|
value_type |
| Name | Description |
|---|---|
| int_2 Constructor | Overloaded. Default constructor, initializes all elements with 0. |
| Name | Description |
|---|---|
| int_2::get_x | |
| int_2::get_xy | |
| int_2::get_y | |
| int_2::get_yx | |
| int_2::ref_g | |
| int_2::ref_r | |
| int_2::ref_x | |
| int_2::ref_y | |
| int_2::set_x | |
| int_2::set_xy | |
| int_2::set_y | |
| int_2::set_yx |
| Name | Description |
|---|---|
| int_2::operator- | |
| int_2::operator-- | |
| int_2::operator%= | |
| int_2::operator&= | |
| int_2::operator*= | |
| int_2::operator/= | |
| int_2::operator^= | |
| int_2::operator|= | |
| int_2::operator~ | |
| int_2::operator++ | |
| int_2::operator+= | |
| int_2::operator<<= | |
| int_2::operator= | |
| int_2::operator-= | |
| int_2::operator>>= |
| Name | Description |
|---|---|
| size Constant |
| Name | Description |
|---|---|
| int_2::g | |
| int_2::gr | |
| int_2::r | |
| int_2::rg | |
| int_2::x | |
| int_2::xy | |
| int_2::y | |
| int_2::yx |
int_2
Header: amp_short_vectors.h
Namespace: Concurrency::graphics
Default constructor, initializes all elements with 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
The value to initialize element 0.
_V1
The value to initialize element 1.
_V
The value for initialization.
_Other
The object used to initialize.
static const int size = 2;