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-emit-hlsl.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/slang/slang-emit-hlsl.cpp') diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index b022a2db9..240b5c0cb 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -1692,10 +1692,6 @@ void HLSLSourceEmitter::_emitStageAccessSemantic( void HLSLSourceEmitter::emitPostKeywordTypeAttributesImpl(IRInst* inst) { - if (const auto payloadDecoration = inst->findDecoration()) - { - m_writer->emit("[payload] "); - } // Get the target profile to determine if PAQs are supported bool enablePAQs = false; -- cgit v1.2.3