| 61 | } |
| 62 | |
| 63 | void |
| 64 | Sequence::end() |
| 65 | { |
| 66 | KP_LOG_DEBUG("Kompute Sequence calling END"); |
| 67 | |
| 68 | if (this->isRunning()) { |
| 69 | throw std::runtime_error( |
| 70 | "Kompute Sequence begin called when sequence still running"); |
| 71 | } |
| 72 | |
| 73 | if (!this->isRecording()) { |
| 74 | KP_LOG_WARN("Kompute Sequence end called when not recording"); |
| 75 | return; |
| 76 | } else { |
| 77 | KP_LOG_INFO("Kompute Sequence command recording END"); |
| 78 | this->mCommandBuffer->end(); |
| 79 | this->mRecording = false; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void |
| 84 | Sequence::clear() |