Operator explicit operator
explicit operator uint4(bool)
Explicitly converts a single bool value to a uint4 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint4(bool v)
Parameters
Type | Name | Description |
---|---|---|
bool | v | bool to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(bool4)
Explicitly converts a bool4 vector to a uint4 vector by componentwise conversion.
Declaration
public static explicit operator uint4(bool4 v)
Parameters
Type | Name | Description |
---|---|---|
bool4 | v | bool4 to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(int)
Explicitly converts a single int value to a uint4 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint4(int v)
Parameters
Type | Name | Description |
---|---|---|
int | v | int to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(int4)
Explicitly converts a int4 vector to a uint4 vector by componentwise conversion.
Declaration
public static explicit operator uint4(int4 v)
Parameters
Type | Name | Description |
---|---|---|
int4 | v | int4 to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(float)
Explicitly converts a single float value to a uint4 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint4(float v)
Parameters
Type | Name | Description |
---|---|---|
float | v | float to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(float4)
Explicitly converts a float4 vector to a uint4 vector by componentwise conversion.
Declaration
public static explicit operator uint4(float4 v)
Parameters
Type | Name | Description |
---|---|---|
float4 | v | float4 to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(double)
Explicitly converts a single double value to a uint4 vector by converting it to uint and assigning it to every component.
Declaration
public static explicit operator uint4(double v)
Parameters
Type | Name | Description |
---|---|---|
double | v | double to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |
explicit operator uint4(double4)
Explicitly converts a double4 vector to a uint4 vector by componentwise conversion.
Declaration
public static explicit operator uint4(double4 v)
Parameters
Type | Name | Description |
---|---|---|
double4 | v | double4 to convert to uint4 |
Returns
Type | Description |
---|---|
uint4 | Converted value. |