From 99de1a6203f676955f80de8c93c0f56c91d4ca96 Mon Sep 17 00:00:00 2001 From: Lujin Wang <143145775+lujinwangnv@users.noreply.github.com> Date: Fri, 26 Sep 2025 16:07:13 -0700 Subject: Add SPV_NV_bindless_texture support (#8534) Treat DescriptorHandle as uint64_t instead of uint2. Implement target-specific SPIR-V emission with the bindless texture support. For OpImageTexelPointer, Image must have a type of OpTypePointer with Type OpTypeImage. Fix the issue by using [constref] in __subscript. Add a test coverage for various texture/sampler handle types. --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- source/slang/slang-ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-ir.cpp') diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index a61859a5e..e9d1a1199 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -8709,6 +8709,8 @@ bool IRInst::mightHaveSideEffects(SideEffectAnalysisOptions options) case kIROp_EnumCast: case kIROp_CastUInt2ToDescriptorHandle: case kIROp_CastDescriptorHandleToUInt2: + case kIROp_CastUInt64ToDescriptorHandle: + case kIROp_CastDescriptorHandleToUInt64: case kIROp_CastDescriptorHandleToResource: case kIROp_GetDynamicResourceHeap: case kIROp_CastDynamicResource: -- cgit v1.2.3