Operator Implicit
Implicit(Single to float4)
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 |
---|---|---|
Single | v | float to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
Implicit(Int32 to float4)
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 |
---|---|---|
Int32 | v | int to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
Implicit(int4 to float4)
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(UInt32 to float4)
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 |
---|---|---|
UInt32 | v | uint to convert to float4 |
Returns
Type | Description |
---|---|
float4 | Converted value. |
Implicit(uint4 to float4)
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(half to float4)
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(half4 to float4)
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(Vector4 to float4)
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(float4 to Vector4)
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. |