mirror of
https://github.com/rt64/rt64.git
synced 2025-04-16 05:42:29 +00:00
Fix barrier for VI renderer.
This commit is contained in:
parent
00aecb38ac
commit
d3d5590ed3
@ -330,12 +330,12 @@ namespace RT64 {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
colorTarget->resolveTarget(ext.presentGraphicsWorker);
|
colorTarget->resolveTarget(ext.presentGraphicsWorker);
|
||||||
commandList->barriers(RenderBarrierStage::GRAPHICS, RenderTextureBarrier(colorTarget->getResolvedTexture(), RenderTextureLayout::SHADER_READ));
|
|
||||||
renderParams.texture = colorTarget->getResolvedTexture();
|
renderParams.texture = colorTarget->getResolvedTexture();
|
||||||
renderParams.textureWidth = colorTarget->width;
|
renderParams.textureWidth = colorTarget->width;
|
||||||
renderParams.textureHeight = colorTarget->height;
|
renderParams.textureHeight = colorTarget->height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
commandList->barriers(RenderBarrierStage::GRAPHICS, RenderTextureBarrier(renderParams.texture, RenderTextureLayout::SHADER_READ));
|
||||||
viRenderer->render(renderParams);
|
viRenderer->render(renderParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1490,6 +1490,7 @@ namespace RT64 {
|
|||||||
this->rayGen = rayGen;
|
this->rayGen = rayGen;
|
||||||
this->miss = miss;
|
this->miss = miss;
|
||||||
this->hitGroup = hitGroup;
|
this->hitGroup = hitGroup;
|
||||||
|
this->callable = callable;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user