Replace 'reinterpret_cast' with 'static_cast'

This commit is contained in:
Dr. Dystopia
2024-07-24 06:24:51 +02:00
parent 53ede795a2
commit 6d44afc7dd
26 changed files with 31 additions and 36 deletions

View File

@ -47,7 +47,7 @@ std::vector<BBoxType> D3D12BoundingBox::Read(u32 index, u32 length)
return values;
// Copy out the values we want
std::memcpy(values.data(), reinterpret_cast<const u8*>(mapped_pointer) + sizeof(BBoxType) * index,
std::memcpy(values.data(), static_cast<const u8*>(mapped_pointer) + sizeof(BBoxType) * index,
sizeof(BBoxType) * length);
static constexpr D3D12_RANGE write_range = {0, 0};