Skip to content

Commit

Permalink
concretise image ranges when the attachment is not unbounded
Browse files Browse the repository at this point in the history
  • Loading branch information
martty committed Nov 20, 2023
1 parent 88000e1 commit f8b61ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ExecutableRenderGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace vuk {
if (dep.subresourceRange.baseArrayLayer > bound.attachment.base_layer + bound.attachment.layer_count) {
return false;
}
dep.subresourceRange.layerCount = bound.attachment.layer_count;
}
assert(bound.attachment.level_count != VK_REMAINING_MIP_LEVELS);
if (dep.subresourceRange.levelCount != VK_REMAINING_MIP_LEVELS) {
Expand All @@ -65,6 +66,7 @@ namespace vuk {
if (dep.subresourceRange.baseMipLevel > bound.attachment.base_level + bound.attachment.level_count) {
return false;
}
dep.subresourceRange.levelCount = bound.attachment.level_count;
}

if (dep.srcQueueFamilyIndex != VK_QUEUE_FAMILY_IGNORED) {
Expand Down

0 comments on commit f8b61ef

Please sign in to comment.