[clang] [llvm] [HLSL] Move length support out of the DirectX Backend (PR #121611)
Greg Roth via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 10:21:48 PST 2025
================
@@ -1297,27 +1297,16 @@ float4 lerp(float4, float4, float4);
///
/// Length is based on the following formula: sqrt(x[0]^2 + x[1]^2 + ...).
-_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
-_HLSL_BUILTIN_ALIAS(__builtin_hlsl_length)
-half length(half);
-_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
-_HLSL_BUILTIN_ALIAS(__builtin_hlsl_length)
-half length(half2);
-_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
-_HLSL_BUILTIN_ALIAS(__builtin_hlsl_length)
-half length(half3);
-_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
-_HLSL_BUILTIN_ALIAS(__builtin_hlsl_length)
-half length(half4);
----------------
pow2clk wrote:
Is the 6.2 restriction preserved somehow?
https://github.com/llvm/llvm-project/pull/121611
More information about the llvm-commits
mailing list