[llvm] [SPIRV] Implement lowering for HLSL Texture2D sampling intrinsics (PR #179312)
Steven Perron via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 5 06:58:47 PST 2026
================
@@ -194,6 +194,55 @@ def int_spv_rsqrt : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty]
llvm_any_ty, llvm_float_ty],
[IntrReadMem]>;
+ def int_spv_resource_samplebias
+ : DefaultAttrsIntrinsic<[llvm_any_ty],
+ [llvm_any_ty, llvm_any_ty, llvm_any_ty,
+ llvm_float_ty, llvm_any_ty],
+ [IntrReadMem]>;
+
+ def int_spv_resource_samplebias_clamp
----------------
s-perron wrote:
I want to keep the intrinsic interchangeable between DXIL and SPIR-V. DXIL does not have the same restriction.
https://github.com/llvm/llvm-project/pull/179312
More information about the llvm-commits
mailing list