asuint
Description
Reinterpret bits of double as a uint.
Signature
void asuint( double value, out uint lowbits, out uint highbits); uint asuint(float x); uint asuint(int x); vector<uint, N> asuint<N:int>(vector<float, N> x); vector<uint, N> asuint<N:int>(vector<int, N> x); matrix<uint, N, M> asuint<N:int, M:int>(matrix<float, N, M> x); matrix<uint, N, M> asuint<N:int, M:int>(matrix<int, N, M> x); uint asuint(uint x); vector<uint, N> asuint<N:int>(vector<uint, N> x); matrix<uint, N, M> asuint<N:int, M:int>(matrix<uint, N, M> x);
Generic Parameters
N : int
M : int
Parameters
value : double
lowbits : uint
highbits : uint
x : float
x : int
x : vector<float, N>
x : vector<int, N>
x : matrix<float, N, M>
x : matrix<int, N, M>
x : uint
x : vector<uint, N>
x : matrix<uint, N, M>
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
cuda
Available in all stages.
spirv
Available in all stages.