| 24 | |
| 25 | template<typename T> |
| 26 | bool checkContinuousData(render::ContinuousBuffer<T>& buffer, typename render::ContinuousBuffer<T>::Handle handle, |
| 27 | const std::initializer_list<std::vector<T>>& dataVectors) |
| 28 | { |
| 29 | // Create a continuous buffer |
| 30 | std::vector<T> fullData; |
| 31 | |
| 32 | for (const auto& data : dataVectors) |
| 33 | { |
| 34 | fullData.insert(fullData.end(), data.begin(), data.end()); |
| 35 | } |
| 36 | |
| 37 | auto result = checkData(buffer, handle, fullData); |
| 38 | |
| 39 | EXPECT_TRUE(result) << "Data not continuously stored"; |
| 40 | |
| 41 | return result; |
| 42 | } |
| 43 | |
| 44 | template<typename T> |
| 45 | bool checkDataInBufferObject(render::ContinuousBuffer<T>& buffer, typename render::ContinuousBuffer<T>::Handle handle, |