Skip to content

Commit 7274ae5

Browse files
minor opt
1 parent fb53a05 commit 7274ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backends/dx/DXRuntime/Device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ void process_dxgi_error(HRESULT hr) {
491491
} else {
492492
ContextStr.clear();
493493
}
494-
luisa::wstring OpName = (BreadcrumbOp < std::size(OpNames)) ? OpNames[BreadcrumbOp] : L"Unknown Op";
495-
luisa::wstring State = Op < LastCompletedOp ? L"[ok]" : (Op == LastCompletedOp ? L"[Active]" : L"[ ]");
494+
luisa::wstring_view OpName = (BreadcrumbOp < std::size(OpNames)) ? OpNames[BreadcrumbOp] : L"Unknown Op";
495+
luisa::wstring_view State = Op < LastCompletedOp ? L"[ok]" : (Op == LastCompletedOp ? L"[Active]" : L"[ ]");
496496
luisa::format_to(std::back_inserter(result), L"\t{} Op: {}, {} {} {}\n", State, Op, OpName, ContextStr, (Op + 1 == LastCompletedOp) ? L" - LAST COMPLETED" : L"");
497497
}
498498
}

0 commit comments

Comments
 (0)