[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #136026)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 22:00:03 PDT 2025
================
@@ -26,6 +26,12 @@ def SPIRVReflect : Builtin {
let Prototype = "void(...)";
}
+def SPIRVRefract : Builtin {
+ let Spellings = ["__builtin_spirv_refract"];
+ let Attributes = [NoThrow, Const];
----------------
farzonl wrote:
You need to add `CustomTypeChecking`.
```suggestion
let Attributes = [NoThrow, Const, CustomTypeChecking];
```
https://github.com/llvm/llvm-project/pull/136026
More information about the cfe-commits
mailing list