Reinterprets a cast value (two 32-bit values) into a double.
double asdouble( in uint lowbits, in uint highbits );
- lowbits [in]
The low 32-bit pattern of the input value.
- highbits [in]
The high 32-bit pattern of the input value.
The input (two 32-bit values) recast as a double.
The following overloaded version is also available:
double2 asdouble(uint2 lowbits, uint2 highbits);
If the input value is two 32-bit components, the return type will contain one double. If the input value is four 32-bit components, the return type will contain two doubles. If the input value is a 64-bit type, the returned value will have the same number of components as the input value.
This function is supported in the following shader models.
|Shader Model 5 and higher shader models||yes|
This function is supported in the following types of shaders: