summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-lower-to-ir.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-11-21 17:22:41 -0800
committerGitHub <noreply@github.com>2023-11-21 17:22:41 -0800
commit5af36cf4ca7a81d91fb03cdf39e40b6b4175fa2d (patch)
treed52737e72f83c760724827691c67d0f03b9c71ea /source/slang/slang-lower-to-ir.cpp
parent383c0ef172fb19b3b9c7270fb6429ce19fd1b332 (diff)
Add SPIRV intrinsics for texture footprint query. (#3345)
* Add SPIRV intrinsics for texture footprint query. * Cleanup. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
-rw-r--r--source/slang/slang-lower-to-ir.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp
index 206a47018..9686c4735 100644
--- a/source/slang/slang-lower-to-ir.cpp
+++ b/source/slang/slang-lower-to-ir.cpp
@@ -4561,7 +4561,9 @@ struct ExprLoweringVisitorBase : public ExprVisitor<Derived, LoweredValInfo>
{
if( auto declaredSubtypeWitness = as<DeclaredSubtypeWitness>(subTypeWitness) )
{
- return extractField(superType, value, declaredSubtypeWitness->getDeclRef());
+ // Drop the specialization info on inheritance decl struct keys, as it makes no
+ // sense to specialize a key.
+ return extractField(superType, value, declaredSubtypeWitness->getDeclRef().getDecl());
}
else
{