Skip to content

Commit

Permalink
layers: Warn if one descriptor set is null
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg committed Sep 30, 2024
1 parent 8bb1ad9 commit 7a5f233
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layers/state_tracker/pipeline_layout_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ std::string PipelineLayoutCompatDef::DescribeDifference(const PipelineLayoutComp
const auto &other_ds_layouts = *other.set_layouts_id.get();
for (uint32_t i = 0; i <= set; i++) {
if (descriptor_set_layouts[i] != other_ds_layouts[i]) {
if (!descriptor_set_layouts[i] || !other_ds_layouts[i]) {
ss << "Set " << i << " contains a null set which is considered non-compatible\n";
break;
}
return descriptor_set_layouts[i]->DescribeDifference(i, *other_ds_layouts[i]);
}
}
Expand Down

0 comments on commit 7a5f233

Please sign in to comment.