Skip to content

Latest commit

 

History

History
116 lines (68 loc) · 1.99 KB

asuint.md

File metadata and controls

116 lines (68 loc) · 1.99 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
asuint function
Reinterprets the bit pattern of a 64-bit value as two unsigned 32-bit integers.
29671661-4fec-46e5-9b6f-56fba8e1d756
asuint function HLSL
apiref
asuint
NA
reference
05/31/2018

asuint function

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

Syntax

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

Parameters

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.

Remarks

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 Model Supported
Shader Model 5 and higher shader models yes

 

This function is supported in the following types of shaders:

Vertex Hull Domain Geometry Pixel Compute
x x x x x x

 

See also

Intrinsic Functions

asuint (DirectX HLSL)

Shader Model 5