| 1507 | } |
| 1508 | |
| 1509 | uint32_t CommandBufferAccessContext::GetViewMask() const { |
| 1510 | if (dynamic_rendering_info_) { |
| 1511 | return dynamic_rendering_info_->info.viewMask; |
| 1512 | } else if (current_renderpass_context_) { |
| 1513 | const auto& render_pass_ci = current_renderpass_context_->GetRenderPassState()->create_info; |
| 1514 | const uint32_t subpass = current_renderpass_context_->GetCurrentSubpass(); |
| 1515 | return render_pass_ci.pSubpasses[subpass].viewMask; |
| 1516 | } else { |
| 1517 | assert(false && "GetViewMask musk be called only during render pass instance"); |
| 1518 | return 0; |
| 1519 | } |
| 1520 | } |
| 1521 | |
| 1522 | // NOTE: debug location reporting feature works only for reproducible application sessions |
| 1523 | // (it uses command number/reset count from the error message from the previous session). |
no test coverage detected