Skip to content
Merged
Changes from all commits
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
8 changes: 6 additions & 2 deletions source/slang/slang-emit-cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,12 @@ SlangResult CPPSourceEmitter::calcTypeName(IRType* type, CodeGenTarget target, S
out << "OptixCoopVec<" << _getTypeName(elemType) << ", " << elemCount << ">";
return SLANG_OK;
}
// Cooperative vectors should have been lowered before reaching C++ emit for non-OptiX targets
SLANG_DIAGNOSE_UNEXPECTED(getSink(), SourceLoc(), "cooperative vector types are only supported for OptiX targets");
// Cooperative vectors should have been lowered before reaching C++ emit for non-OptiX
// targets
SLANG_DIAGNOSE_UNEXPECTED(
getSink(),
SourceLoc(),
"cooperative vector types are only supported for OptiX targets");
return SLANG_FAIL;
}
default:
Expand Down