MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Reset

Method Reset

layers/sync/sync_command_buffer.cpp:311–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void CommandBufferAccessContext::Reset() {
312 access_log_ = std::make_shared<AccessLog>();
313 cbs_referenced_ = std::make_shared<CommandBufferSet>();
314 if (cb_state_) {
315 cbs_referenced_->push_back(cb_state_->shared_from_this());
316 }
317 sync_ops_.clear();
318 command_number_ = 0;
319 reset_count_++;
320
321 sync_state_.stats.RemoveHandleRecord((uint32_t)handles_.size());
322 handles_.clear();
323
324 current_command_tag_ = vvl::kNoIndex32;
325 cb_access_context_.Reset();
326 render_pass_contexts_.clear();
327 current_context_ = &cb_access_context_;
328 current_renderpass_context_ = nullptr;
329 events_context_.Clear();
330 dynamic_rendering_info_.reset();
331}
332
333bool CommandBufferAccessContext::ValidateBeginRendering(const ErrorObject& error_obj, BeginRenderingCmdState& cmd_state) const {
334 bool skip = false;

Callers

nothing calls this directly

Calls 7

push_backMethod · 0.45
shared_from_thisMethod · 0.45
clearMethod · 0.45
RemoveHandleRecordMethod · 0.45
sizeMethod · 0.45
ClearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected