| Parameter | Description |
|---|---|
| x | The constructed vector's x component will be set to this value. |
| y | The constructed vector's y component will be set to this value. |
half2 half2 constructed from arguments.
Returns a half2 vector constructed from two half values.
| Parameter | Description |
|---|---|
| xy | The constructed vector's xy components will be set to this value. |
half2 half2 constructed from arguments.
Returns a half2 vector constructed from a half2 vector.
| Parameter | Description |
|---|---|
| v | half to convert to half2 |
half2 Converted value.
Returns a half2 vector constructed from a single half value by assigning it to every component.
| Parameter | Description |
|---|---|
| v | float to convert to half2 |
half2 Converted value.
Returns a half2 vector constructed from a single float value by converting it to half and assigning it to every component.
| Parameter | Description |
|---|---|
| v | float2 to convert to half2 |
half2 Converted value.
Return a half2 vector constructed from a float2 vector by componentwise conversion.
| Parameter | Description |
|---|---|
| v | double to convert to half2 |
half2 Converted value.
Returns a half2 vector constructed from a single double value by converting it to half and assigning it to every component.
| Parameter | Description |
|---|---|
| v | double2 to convert to half2 |
half2 Converted value.
Return a half2 vector constructed from a double2 vector by componentwise conversion.