changes
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include <sophia/util/assert.hpp>
|
||||
#include <utility>
|
||||
|
||||
#include "vulkan/debug_label.hpp"
|
||||
|
||||
namespace sophia {
|
||||
|
||||
ImageRef RenderGraph::importImage(Image& image, Access finalAccess) {
|
||||
@@ -74,6 +76,8 @@ void RenderGraph::flush(vk::CommandBuffer commandBuffer,
|
||||
}
|
||||
|
||||
void RenderGraph::recordPass(vk::CommandBuffer commandBuffer, Pass& pass) {
|
||||
beginDebugLabel(commandBuffer, pass.name.c_str());
|
||||
|
||||
PendingBarriers pending;
|
||||
for (const ImageUse& use : pass.uses) {
|
||||
this->transitionTo(use.image, getAccessState(use.access), pending);
|
||||
@@ -82,9 +86,14 @@ void RenderGraph::recordPass(vk::CommandBuffer commandBuffer, Pass& pass) {
|
||||
|
||||
if (pass.colorAttachments.empty()) {
|
||||
pass.execute(commandBuffer);
|
||||
return;
|
||||
} else {
|
||||
this->recordRendering(commandBuffer, pass);
|
||||
}
|
||||
|
||||
endDebugLabel(commandBuffer);
|
||||
}
|
||||
|
||||
void RenderGraph::recordRendering(vk::CommandBuffer commandBuffer, Pass& pass) {
|
||||
std::vector<vk::RenderingAttachmentInfo> attachments;
|
||||
attachments.reserve(pass.colorAttachments.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user