We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aa9ac6 commit a6301d6Copy full SHA for a6301d6
1 file changed
tools/clang/lib/AST/HlslTypes.cpp
@@ -694,7 +694,8 @@ bool GetHLSLSubobjectKind(clang::QualType type,
694
HLSLSubObjectAttr *Attr = RD->getAttr<HLSLSubObjectAttr>();
695
subobjectKind = (DXIL::SubobjectKind)Attr->getSubObjKindUint();
696
hgType = (DXIL::HitGroupType)Attr->getHitGroupType();
697
- DXASSERT(DXIL::IsValidHitGroupType(hgType), "invalid hit group type");
+ if (subobjectKind == DXIL::SubobjectKind::HitGroup)
698
+ DXASSERT(DXIL::IsValidHitGroupType(hgType), "invalid hit group type");
699
700
return true;
701
}
0 commit comments