| 431 | } |
| 432 | |
| 433 | void Graph::setScratch(const Ref<Buffer>& scratch) |
| 434 | { |
| 435 | if (scratch->getByteSize() < getScratchByteSize()) |
| 436 | throw std::invalid_argument("graph scratch buffer is too small"); |
| 437 | this->scratch = scratch; |
| 438 | } |
| 439 | |
| 440 | void Graph::cleanup() |
| 441 | { |
no test coverage detected