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

Method GetViewMask

layers/sync/sync_command_buffer.cpp:1509–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1507}
1508
1509uint32_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).

Calls 2

GetRenderPassStateMethod · 0.80
GetCurrentSubpassMethod · 0.80

Tested by

no test coverage detected