asuint16
Description
Reinterpret bits as a uint16_t (HLSL SM 6.2).
Signature
uint16_t asuint16(uint16_t value); vector<uint16_t, N> asuint16<N:int>(vector<uint16_t, N> value); matrix<uint16_t, R, C> asuint16<R:int, C:int>(matrix<uint16_t, R, C> value); uint16_t asuint16(int16_t value); vector<uint16_t, N> asuint16<N:int>(vector<int16_t, N> value); matrix<uint16_t, R, C> asuint16<R:int, C:int>(matrix<int16_t, R, C> value); uint16_t asuint16(half value); vector<uint16_t, N> asuint16<N:int>(vector<half, N> value); matrix<uint16_t, R, C> asuint16<R:int, C:int>(matrix<half, R, C> value);
Generic Parameters
N : int
R : int
C : int
Parameters
value : uint16_t
value : vector<uint16_t, N>
value : matrix<uint16_t, R, C>
value : int16_t
value : vector<int16_t, N>
value : matrix<int16_t, R, C>
value : half
value : vector<half, N>
value : matrix<half, R, C>
Availability and Requirements
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cuda
Available in all stages.
spirv
Available in all stages.