From 0f098b9d27a859add3d62d2e82b699341d5ce895 Mon Sep 17 00:00:00 2001 From: "Harsh Aggarwal (NVIDIA)" Date: Tue, 1 Jul 2025 04:33:42 +0530 Subject: Remove redundant [payload] attribute (Fix #7528) (#7555) Removes the PayloadAttribute class and related infrastructure that was made redundant by PR #6595, which added ray payload access qualifiers (PAQs) per the DXR spec. The new [raypayload] attribute with access qualifiers provides the same functionality. Changes: - Remove PayloadAttribute class from slang-ast-modifier.h - Remove [payload] attribute syntax from core.meta.slang - Remove PayloadDecoration IR instruction and related processing - Remove HLSL emission of [payload] attribute - Remove IR lowering support for old PayloadAttribute The new [raypayload] attribute with PAQ support remains unchanged. --- source/slang/slang-lower-to-ir.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/slang/slang-lower-to-ir.cpp') diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 8e13a3dc5..42a71764c 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -9628,10 +9628,6 @@ struct DeclLoweringVisitor : DeclVisitor addNameHint(context, irAggType, decl); addLinkageDecoration(context, irAggType, decl); - if (const auto payloadAttribute = decl->findModifier()) - { - subBuilder->addDecoration(irAggType, kIROp_PayloadDecoration); - } if (const auto rayPayloadAttribute = decl->findModifier()) { -- cgit v1.2.3