shader: Use memset to reset instruction arguments
This commit is contained in:
parent
c84bbd9e44
commit
f66851e376
2 changed files with 7 additions and 4 deletions
|
@ -279,8 +279,10 @@ void Inst::ClearArgs() {
|
|||
if (!value.IsImmediate()) {
|
||||
UndoUse(value);
|
||||
}
|
||||
value = {};
|
||||
}
|
||||
// Reset arguments to null
|
||||
// std::memset was measured to be faster on MSVC than std::ranges:fill
|
||||
std::memset(&args, 0, sizeof(args));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue