| 72 | /* ----- Encoding ----- */ |
| 73 | |
| 74 | void DbgCommandBuffer::Begin() |
| 75 | { |
| 76 | /* Reset previous states */ |
| 77 | ResetFrameProfile(); |
| 78 | ResetBindings(); |
| 79 | ResetStates(); |
| 80 | |
| 81 | /* Enable performance profiler if it was scheduled */ |
| 82 | perfProfilerEnabled_ = (profiler_ != nullptr && profiler_->timeRecordingEnabled); |
| 83 | if (perfProfilerEnabled_) |
| 84 | timerMngr_.Reset(); |
| 85 | |
| 86 | /* Begin with command recording */ |
| 87 | if (debugger_) |
| 88 | EnableRecording(true); |
| 89 | |
| 90 | instance.Begin(); |
| 91 | |
| 92 | profile_.commandBufferEncodings++; |
| 93 | } |
| 94 | |
| 95 | void DbgCommandBuffer::End() |
| 96 | { |