Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions tools/clang/lib/AST/HlslTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,14 +604,9 @@ bool IsHLSLNodeOutputType(clang::QualType type) {
}

bool IsHLSLNodeRecordArrayType(clang::QualType type) {
if (const RecordType *RT = type->getAs<RecordType>()) {
StringRef name = RT->getDecl()->getName();
if (name == "ThreadNodeOutputRecords" || name == "GroupNodeOutputRecords" ||
name == "GroupNodeInputRecords" || name == "RWGroupNodeInputRecords" ||
name == "EmptyNodeInput")
return true;
}
return false;
return ((static_cast<uint32_t>(GetNodeIOType(type)) &
static_cast<uint32_t>(DXIL::NodeIOFlags::NodeArray)) ==
static_cast<uint32_t>(DXIL::NodeIOFlags::NodeArray));
}

bool IsHLSLEmptyNodeRecordType(clang::QualType type) {
Expand Down
Loading