Operator Explicit
Explicit(Single to half4)
Explicitly converts a single float value to a half4 vector by converting it to half and assigning it to every component.
Declaration
public static explicit operator half4(float v)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | v | float to convert to half4 |
Returns
| Type | Description |
|---|---|
| half4 | Converted value. |
Explicit(float4 to half4)
Explicitly converts a float4 vector to a half4 vector by componentwise conversion.
Declaration
public static explicit operator half4(float4 v)
Parameters
| Type | Name | Description |
|---|---|---|
| float4 | v | float4 to convert to half4 |
Returns
| Type | Description |
|---|---|
| half4 | Converted value. |
Explicit(Double to half4)
Explicitly converts a single double value to a half4 vector by converting it to half and assigning it to every component.
Declaration
public static explicit operator half4(double v)
Parameters
| Type | Name | Description |
|---|---|---|
| Double | v | double to convert to half4 |
Returns
| Type | Description |
|---|---|
| half4 | Converted value. |
Explicit(double4 to half4)
Explicitly converts a double4 vector to a half4 vector by componentwise conversion.
Declaration
public static explicit operator half4(double4 v)
Parameters
| Type | Name | Description |
|---|---|---|
| double4 | v | double4 to convert to half4 |
Returns
| Type | Description |
|---|---|
| half4 | Converted value. |