summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
authorLujin Wang <143145775+lujinwangnv@users.noreply.github.com>2025-09-26 16:07:13 -0700
committerGitHub <noreply@github.com>2025-09-26 23:07:13 +0000
commit99de1a6203f676955f80de8c93c0f56c91d4ca96 (patch)
tree2db039fb597a55cf455747eda31d35f578ceda0c /source/slang/slang-ir.cpp
parente9f74ebfa83cd6aca39d7e3da2801cd47935bd1a (diff)
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>
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp2
1 files changed, 2 insertions, 0 deletions
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: