* @brief Prepare the workspace for a render pass with C columns. */
| 797 | * @brief Prepare the workspace for a render pass with C columns. |
| 798 | */ |
| 799 | void reset(std::size_t C) |
| 800 | { |
| 801 | if (cnt.size() != C) { |
| 802 | cnt.resize(C); |
| 803 | minY.resize(C); |
| 804 | maxY.resize(C); |
| 805 | minI.resize(C); |
| 806 | maxI.resize(C); |
| 807 | lastI.resize(C); |
| 808 | firstI.resize(C); |
| 809 | } |
| 810 | |
| 811 | std::fill(cnt.begin(), cnt.end(), 0u); |
| 812 | std::fill(minY.begin(), minY.end(), std::numeric_limits<ssfp_t>::infinity()); |
| 813 | std::fill(maxY.begin(), maxY.end(), -std::numeric_limits<ssfp_t>::infinity()); |
| 814 | } |
| 815 | }; |
| 816 | |
| 817 | //-------------------------------------------------------------------------------------------------- |
no test coverage detected