spirv: emit OpName only with debug info

This commit is contained in:
nmzik committed 2026-10-22 22:11:06 +02:00
1 parent a875d1b205
commit a951a91703
5 files changed
+42 -11

No files matched your search

@@ -169,6 +169,9 @@ uint32_t Builder::AddString(const char* text) {
}
void Builder::AddName(uint32_t target, const char* name) {
if (!m_emit_names) {
return;
}
std::vector<uint32_t> operands = {target};
AppendString(operands, name);
AppendInstruction(m_debug, spv::OpName, operands);