Returns a vector of BufferInfo instances in `buffer_infos` that are entry parameter buffers.
| 101 | // Returns a vector of BufferInfo instances in `buffer_infos` that are entry |
| 102 | // parameter buffers. |
| 103 | std::vector<BufferInfo> ExtractEntryParamBufferInfos( |
| 104 | const std::vector<BufferInfo>& buffer_infos) { |
| 105 | std::vector<BufferInfo> result; |
| 106 | std::copy_if(buffer_infos.begin(), buffer_infos.end(), |
| 107 | std::back_inserter(result), [](const BufferInfo& buffer_info) { |
| 108 | return buffer_info.is_entry_parameter(); |
| 109 | }); |
| 110 | return result; |
| 111 | } |
| 112 | |
| 113 | // Returns a vector of BufferInfo instances in `buffer_infos` that are temp |
| 114 | // buffers. |
no test coverage detected