| layout | stdlib-reference |
|---|
Reinterpret bits as a float16 (HLSL SM 6.2).
half asfloat16(half value); vector<half, N> asfloat16<N:int>(vector<half, N> value); matrix<half, R, C> asfloat16<R:int, C:int>(matrix<half, R, C> value); /// Requires Capability Set 1: half asfloat16(uint16_t value); /// Requires Capability Set 1: vector<half, N> asfloat16<N:int>(vector<uint16_t, N> value); matrix<half, R, C> asfloat16<R:int, C:int>(matrix<uint16_t, R, C> value); /// Requires Capability Set 2: half asfloat16(int16_t value); /// Requires Capability Set 2: vector<half, N> asfloat16<N:int>(vector<int16_t, N> value); /// Requires Capability Set 3: matrix<half, R, C> asfloat16<R:int, C:int>(matrix<int16_t, R, C> value);
Defined for the following targets:
Available in all stages.
Available in all stages.
Available in all stages.
Available in all stages.
Defined for the following targets:
Available in all stages.
Available in all stages.
Available in all stages.
Available in all stages.
Defined for the following targets:
Available in all stages.
Available in all stages.
Available in all stages.