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