Skip to content
Snippets Groups Projects
Verified Commit 94cb6232 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Fix confusion from fsr2 dispatch wording

parent 6243023a
No related branches found
No related tags found
1 merge request!107Resolve "Include FSR 2.0 in the upscaling module"
......@@ -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
......
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment