Method half4
half4(half, half, half, half)
Returns a half4 vector constructed from four half values.
Declaration
public static half4 half4(half x, half y, half z, half w)
Parameters
Type | Name | Description |
---|---|---|
half | x | The constructed vector's x component will be set to this value. |
half | y | The constructed vector's y component will be set to this value. |
half | z | The constructed vector's z component will be set to this value. |
half | w | The constructed vector's w component will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half, half, half2)
Returns a half4 vector constructed from two half values and a half2 vector.
Declaration
public static half4 half4(half x, half y, half2 zw)
Parameters
Type | Name | Description |
---|---|---|
half | x | The constructed vector's x component will be set to this value. |
half | y | The constructed vector's y component will be set to this value. |
half2 | zw | The constructed vector's zw components will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half, half2, half)
Returns a half4 vector constructed from a half value, a half2 vector and a half value.
Declaration
public static half4 half4(half x, half2 yz, half w)
Parameters
Type | Name | Description |
---|---|---|
half | x | The constructed vector's x component will be set to this value. |
half2 | yz | The constructed vector's yz components will be set to this value. |
half | w | The constructed vector's w component will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half, half3)
Returns a half4 vector constructed from a half value and a half3 vector.
Declaration
public static half4 half4(half x, half3 yzw)
Parameters
Type | Name | Description |
---|---|---|
half | x | The constructed vector's x component will be set to this value. |
half3 | yzw | The constructed vector's yzw components will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half2, half, half)
Returns a half4 vector constructed from a half2 vector and two half values.
Declaration
public static half4 half4(half2 xy, half z, half w)
Parameters
Type | Name | Description |
---|---|---|
half2 | xy | The constructed vector's xy components will be set to this value. |
half | z | The constructed vector's z component will be set to this value. |
half | w | The constructed vector's w component will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half2, half2)
Returns a half4 vector constructed from two half2 vectors.
Declaration
public static half4 half4(half2 xy, half2 zw)
Parameters
Type | Name | Description |
---|---|---|
half2 | xy | The constructed vector's xy components will be set to this value. |
half2 | zw | The constructed vector's zw components will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half3, half)
Returns a half4 vector constructed from a half3 vector and a half value.
Declaration
public static half4 half4(half3 xyz, half w)
Parameters
Type | Name | Description |
---|---|---|
half3 | xyz | The constructed vector's xyz components will be set to this value. |
half | w | The constructed vector's w component will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half4)
Returns a half4 vector constructed from a half4 vector.
Declaration
public static half4 half4(half4 xyzw)
Parameters
Type | Name | Description |
---|---|---|
half4 | xyzw | The constructed vector's xyzw components will be set to this value. |
Returns
Type | Description |
---|---|
half4 | half4 constructed from arguments. |
half4(half)
Returns a half4 vector constructed from a single half value by assigning it to every component.
Declaration
public static half4 half4(half v)
Parameters
Type | Name | Description |
---|---|---|
half | v | half to convert to half4 |
Returns
Type | Description |
---|---|
half4 | Converted value. |
half4(Single)
Returns a half4 vector constructed from a single float value by converting it to half and assigning it to every component.
Declaration
public static half4 half4(float v)
Parameters
Type | Name | Description |
---|---|---|
Single | v | float to convert to half4 |
Returns
Type | Description |
---|---|
half4 | Converted value. |
half4(float4)
Return a half4 vector constructed from a float4 vector by componentwise conversion.
Declaration
public static half4 half4(float4 v)
Parameters
Type | Name | Description |
---|---|---|
float4 | v | float4 to convert to half4 |
Returns
Type | Description |
---|---|
half4 | Converted value. |
half4(Double)
Returns a half4 vector constructed from a single double value by converting it to half and assigning it to every component.
Declaration
public static half4 half4(double v)
Parameters
Type | Name | Description |
---|---|---|
Double | v | double to convert to half4 |
Returns
Type | Description |
---|---|
half4 | Converted value. |
half4(double4)
Return a half4 vector constructed from a double4 vector by componentwise conversion.
Declaration
public static half4 half4(double4 v)
Parameters
Type | Name | Description |
---|---|---|
double4 | v | double4 to convert to half4 |
Returns
Type | Description |
---|---|
half4 | Converted value. |