mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -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:
@ -66,7 +66,7 @@ std::vector<BBoxType> OGLBoundingBox::Read(u32 index, u32 length)
|
||||
return values;
|
||||
}
|
||||
|
||||
void OGLBoundingBox::Write(u32 index, const std::vector<BBoxType>& values)
|
||||
void OGLBoundingBox::Write(u32 index, std::span<const BBoxType> values)
|
||||
{
|
||||
glBindBuffer(GL_SHADER_STORAGE_BUFFER, m_buffer_id);
|
||||
glBufferSubData(GL_SHADER_STORAGE_BUFFER, sizeof(BBoxType) * index,
|
||||
|
Reference in New Issue
Block a user