| 8 | |
| 9 | template<typename T> |
| 10 | bool checkData(render::ContinuousBuffer<T>& buffer, typename render::ContinuousBuffer<T>::Handle handle, const std::vector<T>& data) |
| 11 | { |
| 12 | auto current = buffer.getBufferStart() + buffer.getOffset(handle); |
| 13 | |
| 14 | bool result = true; |
| 15 | |
| 16 | for (auto i = 0; i < data.size(); ++i, ++current) |
| 17 | { |
| 18 | EXPECT_EQ(data.at(i), *current) << "Buffer data mismatch at index " << i; |
| 19 | result &= data.at(i) == *current; |
| 20 | } |
| 21 | |
| 22 | return result; |
| 23 | } |
| 24 | |
| 25 | template<typename T> |
| 26 | bool checkContinuousData(render::ContinuousBuffer<T>& buffer, typename render::ContinuousBuffer<T>::Handle handle, |
no test coverage detected