Fix barrier for VI renderer.

This commit is contained in:
Dario 2024-04-18 23:31:11 -03:00
parent 00aecb38ac
commit d3d5590ed3
2 changed files with 2 additions and 1 deletions

View File

@ -330,12 +330,12 @@ namespace RT64 {
}
else {
colorTarget->resolveTarget(ext.presentGraphicsWorker);
commandList->barriers(RenderBarrierStage::GRAPHICS, RenderTextureBarrier(colorTarget->getResolvedTexture(), RenderTextureLayout::SHADER_READ));
renderParams.texture = colorTarget->getResolvedTexture();
renderParams.textureWidth = colorTarget->width;
renderParams.textureHeight = colorTarget->height;
}
commandList->barriers(RenderBarrierStage::GRAPHICS, RenderTextureBarrier(renderParams.texture, RenderTextureLayout::SHADER_READ));
viRenderer->render(renderParams);
}

View File

@ -1490,6 +1490,7 @@ namespace RT64 {
this->rayGen = rayGen;
this->miss = miss;
this->hitGroup = hitGroup;
this->callable = callable;
}
};