Skip to content

Commit 0f0b75d

Browse files
committed
[HLSL] Add 6.2 SM on half availability for length intrinsic
- attribute keeps getting deleted on bad rebases
1 parent 5f70fea commit 0f0b75d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Headers/hlsl/hlsl_intrinsics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,9 +1297,11 @@ float4 lerp(float4, float4, float4);
12971297
///
12981298
/// Length is based on the following formula: sqrt(x[0]^2 + x[1]^2 + ...).
12991299

1300+
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
13001301
const inline half length(half X) { return __detail::length_impl(X); }
13011302
const inline float length(float X) { return __detail::length_impl(X); }
13021303

1304+
_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
13031305
template <int N> const inline half length(vector<half, N> X) {
13041306
return __detail::length_vec_impl(X);
13051307
}

0 commit comments

Comments
 (0)