asuint function

Reinterprets the bit pattern of a 64-bit value as two unsigned 32-bit integers.


void asuint(
  in  double value,
  out uint lowbits,
  out uint highbits


value [in]

Type: double

The input value.

lowbits [out]

Type: uint

The low 32-bit pattern of value.

highbits [out]

Type: uint

The high 32-bit pattern of value.

Return value

This function does not return a value.


This function is an alternate version of the asuint intrinsic that has been available in earlier shader models, and was introduced for Shader Model 5. The original function (recognized in the HLSL compiler by its different signature) remains available to Shader Model 5.

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 5 and higher shader modelsyes


This function is supported in the following types of shaders:



See also

Intrinsic Functions
asuint (DirectX HLSL)
Shader Model 5