diff --git a/modules/upscaling/include/vkcv/upscaling/FSR2Upscaling.hpp b/modules/upscaling/include/vkcv/upscaling/FSR2Upscaling.hpp index d8402c03c8b64a81bdb82ca142fa0ad64958eca5..d61eef8d7e18ea1aee1bb28a6dc2f41ddb40636c 100644 --- a/modules/upscaling/include/vkcv/upscaling/FSR2Upscaling.hpp +++ b/modules/upscaling/include/vkcv/upscaling/FSR2Upscaling.hpp @@ -176,11 +176,7 @@ namespace vkcv::upscaling { /** * Record the commands of the FSR2 upscaling instance to * scale the image of the input handle to the resolution of - * the output image handle via FidelityFX Super Resolution - * and dispatch them. - * - * Beware that this method will dispatch the commands - * automatically! + * the output image handle via FidelityFX Super Resolution. * * @param[in] cmdStream Command stream handle to record commands * @param[in] colorInput Color input image handle diff --git a/modules/upscaling/src/vkcv/upscaling/FSR2Upscaling.cpp b/modules/upscaling/src/vkcv/upscaling/FSR2Upscaling.cpp index d3b7b6c5b484c5943884576eb7c21f88640a9c1a..2737d5f707163071590969d3856624de84b12abe 100644 --- a/modules/upscaling/src/vkcv/upscaling/FSR2Upscaling.cpp +++ b/modules/upscaling/src/vkcv/upscaling/FSR2Upscaling.cpp @@ -264,9 +264,9 @@ namespace vkcv::upscaling { dispatch.cameraFar = m_far; dispatch.cameraFovAngleVertical = m_fov; - m_core.recordCommandsToStream(cmdStream, [&dispatch](const vk::CommandBuffer& cmdBuffer) { + m_core.recordCommandsToStream(cmdStream, [&](const vk::CommandBuffer& cmdBuffer) { dispatch.commandList = ffxGetCommandListVK(cmdBuffer); - }, [&]() { + assert(ffxFsr2ContextDispatch( &m_context, &dispatch @@ -274,7 +274,7 @@ namespace vkcv::upscaling { m_frameIndex++; m_reset = false; - }); + }, nullptr); } void FSR2Upscaling::setCamera(float near, float far, float fov) {