| 60 | } |
| 61 | |
| 62 | void WarpProfiler::end(RenderContext* pRenderContext) |
| 63 | { |
| 64 | FALCOR_CHECK(mActive, "WarpProfiler: end() called without preceding begin()."); |
| 65 | |
| 66 | pRenderContext->copyResource(mpHistogramStagingBuffer.get(), mpHistogramBuffer.get()); |
| 67 | |
| 68 | // Submit command list and insert signal. |
| 69 | pRenderContext->submit(false); |
| 70 | pRenderContext->signal(mpFence.get()); |
| 71 | |
| 72 | mActive = false; |
| 73 | mDataWaiting = true; |
| 74 | } |
| 75 | |
| 76 | std::vector<uint32_t> WarpProfiler::getWarpHistogram(const uint32_t binIndex, const uint32_t binCount) |
| 77 | { |
no test coverage detected