From 941f07040a505f1f673c96da959bde839c629aba Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 11 Dec 2024 13:34:54 -0800 Subject: Fix attribute reflection. (#5823) * Fix attribute reflection. * Fix. * Fix. --- tools/gfx/d3d12/d3d12-shader-object-layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/d3d12/d3d12-shader-object-layout.cpp') diff --git a/tools/gfx/d3d12/d3d12-shader-object-layout.cpp b/tools/gfx/d3d12/d3d12-shader-object-layout.cpp index 6cf51ee2b..8e2d24ad6 100644 --- a/tools/gfx/d3d12/d3d12-shader-object-layout.cpp +++ b/tools/gfx/d3d12/d3d12-shader-object-layout.cpp @@ -39,7 +39,7 @@ bool ShaderObjectLayoutImpl::isBindingRangeRootParameter( { if (auto leafVariable = typeLayout->getBindingRangeLeafVariable(bindingRangeIndex)) { - if (leafVariable->findUserAttributeByName(globalSession, rootParameterAttributeName)) + if (leafVariable->findAttributeByName(globalSession, rootParameterAttributeName)) { isRootParameter = true; } -- cgit v1.2.3