mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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:
@ -5,6 +5,7 @@
|
||||
|
||||
#include <array>
|
||||
#include <memory>
|
||||
#include <span>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
@ -38,8 +39,7 @@ public:
|
||||
|
||||
protected:
|
||||
virtual std::vector<BBoxType> Read(u32 index, u32 length) = 0;
|
||||
// TODO: This can likely use std::span once we're on C++20
|
||||
virtual void Write(u32 index, const std::vector<BBoxType>& values) = 0;
|
||||
virtual void Write(u32 index, std::span<const BBoxType> values) = 0;
|
||||
|
||||
private:
|
||||
void Readback();
|
||||
|
Reference in New Issue
Block a user