[clang] [llvm] [HLSL] Adding HLSL `clip` function. (PR #114588)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 13:58:43 PST 2024
================
@@ -770,6 +770,15 @@ def CheckAccessFullyMapped : DXILOp<71, checkAccessFullyMapped> {
let stages = [Stages<DXIL1_0, [all_stages]>];
}
+def Discard : DXILOp<82, discard> {
+ let Doc = "discard the current pixel";
+ let LLVMIntrinsic = int_dx_discard;
+ let arguments = [Int1Ty];
----------------
farzonl wrote:
should we have any error tests to make sure `discard` only will work on bool args?
https://github.com/llvm/llvm-project/pull/114588
More information about the llvm-commits
mailing list