VideoCommon: Use std::span for BoundingBox::Write()

Crosses off a lingering TODO.

Also amends a few nearby cases where a u32 cast was being repromoted to
size_t.
This commit is contained in:
Lioncash
2023-12-09 14:54:17 -05:00
parent dd227fea5a
commit 5f6c76af51
15 changed files with 19 additions and 20 deletions

View File

@ -42,7 +42,7 @@ std::vector<BBoxType> Metal::BoundingBox::Read(u32 index, u32 length)
}
}
void Metal::BoundingBox::Write(u32 index, const std::vector<BBoxType>& values)
void Metal::BoundingBox::Write(u32 index, std::span<const BBoxType> values)
{
const u32 size = values.size() * sizeof(BBoxType);
if (!g_state_tracker->HasUnflushedData() && !g_state_tracker->GPUBusy())