Export (0) Print
Expand All
abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

asdouble function

Reinterprets a cast value (two 32-bit values) into a double.

Syntax

double asdouble(
  in  uint lowbits,
  in  uint highbits
);

Parameters

lowbits [in]

Type: uint

The low 32-bit pattern of the input value.

highbits [in]

Type: uint

The high 32-bit pattern of the input value.

Return value

Type: double

The input (two 32-bit values) recast as a double.

Remarks

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.

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:

VertexHullDomainGeometryPixelCompute
xxxxxx

 

See also

Shader Model 5

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.