Operator implicit operator
implicit operator float4(float)
Implicitly converts a single float value to a float4 vector by assigning it to every component.
Declaration
public static implicit operator float4(float v)
Parameters
Type | Name | Description |
---|---|---|
float | v | float to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(int)
Implicitly converts a single int value to a float4 vector by converting it to float and assigning it to every component.
Declaration
public static implicit operator float4(int v)
Parameters
Type | Name | Description |
---|---|---|
int | v | int to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(int4)
Implicitly converts a int4 vector to a float4 vector by componentwise conversion.
Declaration
public static implicit operator float4(int4 v)
Parameters
Type | Name | Description |
---|---|---|
int4 | v | int4 to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(uint)
Implicitly converts a single uint value to a float4 vector by converting it to float and assigning it to every component.
Declaration
public static implicit operator float4(uint v)
Parameters
Type | Name | Description |
---|---|---|
uint | v | uint to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(uint4)
Implicitly converts a uint4 vector to a float4 vector by componentwise conversion.
Declaration
public static implicit operator float4(uint4 v)
Parameters
Type | Name | Description |
---|---|---|
uint4 | v | uint4 to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(half)
Implicitly converts a single half value to a float4 vector by converting it to float and assigning it to every component.
Declaration
public static implicit operator float4(half v)
Parameters
Type | Name | Description |
---|---|---|
half | v | half to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(half4)
Implicitly converts a half4 vector to a float4 vector by componentwise conversion.
Declaration
public static implicit operator float4(half4 v)
Parameters
Type | Name | Description |
---|---|---|
half4 | v | half4 to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
implicit operator float4(Vector4)
Converts a Vector4 to float4.
Declaration
public static implicit operator float4(Vector4 v)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | v | Vector4 to convert. |
Returns
Type | Description |
---|---|
float4 | The converted float4. |
implicit operator Vector4(float4)
Converts a float4 to Vector4.
Declaration
public static implicit operator Vector4(float4 v)
Parameters
Type | Name | Description |
---|---|---|
float4 | v | float4 to convert. |
Returns
Type | Description |
---|---|
Vector4 | The converted Vector4. |