Commit c01f48dd authored by Lukas Tietze's avatar Lukas Tietze

Funktioniert wie vorher

parent 374951bb
......@@ -191,7 +191,7 @@ void lib::CgContext::CreateRasterizationDescriptorSets()
auto &backFrame = this->temporalInterpolationFrames[frameIndex];
auto &info = imageInfos.emplace_back();
info.imageLayout = vk::ImageLayout::eGeneral;
info.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal;
info.imageView = backFrame.raytracingRenderTarget->GetView();
info.sampler = backFrame.raytracingRenderTarget->GetSampler();
......
......@@ -775,10 +775,12 @@ void lib::CgContext::UpdateCommandBuffer(uint32_t imageIndex, uint32_t temporalI
this->shaderBindingTableBuffer->GetBufferHandle(), this->shaderOffsets.hitGroup * sbtEntrySize, sbtEntrySize,
this->shaderBindingTableBuffer->GetBufferHandle(), 0, 0,
this->swapChainExtent.width, this->swapChainExtent.height, 1);
}
TransitionImageLayout(frame.commandBuffer,
interpolationFrame.raytracingRenderTarget->GetHandle(), this->swapChainImageFormat,
vk::ImageLayout::eGeneral, vk::ImageLayout::eShaderReadOnlyOptimal,
vk::PipelineStageFlagBits::eRayTracingShaderNV, vk::PipelineStageFlagBits::eAllGraphics);
if (this->IsOk())
{
vk::RenderPassBeginInfo ppBeginInfo;
ppBeginInfo.renderPass = this->rasterizationStep.renderPass;
ppBeginInfo.framebuffer = frame.swapChainFramebufferForRasterizationRenderPass;
......@@ -1021,6 +1023,7 @@ void lib::CgContext::DrawFrame(lib::time_diff_t delta)
this->frames[imageIndex].inFlightFence = this->inFlightFences[this->frameIndex];
vk::PipelineStageFlags waitStages[] = {vk::PipelineStageFlagBits::eColorAttachmentOutput};
vk::SubmitInfo submitInfo;
submitInfo.waitSemaphoreCount = 1;
submitInfo.pWaitSemaphores = &this->imageAvailableSemaphores[this->frameIndex];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment