Returns the sum of the size of each buffer in `buffer_infos`.
| 92 | |
| 93 | // Returns the sum of the size of each buffer in `buffer_infos`. |
| 94 | size_t TotalBufferBytes(const std::vector<BufferInfo>& buffer_infos) { |
| 95 | return std::accumulate(buffer_infos.begin(), buffer_infos.end(), size_t{0}, |
| 96 | [](size_t size, const BufferInfo& buffer_info) { |
| 97 | return size + buffer_info.size(); |
| 98 | }); |
| 99 | } |
| 100 | |
| 101 | // Returns a vector of BufferInfo instances in `buffer_infos` that are entry |
| 102 | // parameter buffers. |
no test coverage detected