mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 17:57:58 -05:00
shader: Use memset to reset instruction arguments
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user