attempt to fix invalid ressource state on render target

This commit is contained in:
Wls50
2025-12-04 22:16:21 +01:00
committed by Hirek
parent de4918f7a8
commit 76488fab43

View File

@@ -246,6 +246,9 @@ void GbufferBlitPass::UpdateSceneColorForRefraction(
command_list->copyTexture(
m_output_copy, nvrhi::TextureSlice().resolve(m_output_copy->getDesc()),
m_output, nvrhi::TextureSlice().resolve(m_output->getDesc()));
command_list->setTextureState(m_output, nvrhi::AllSubresources,
nvrhi::ResourceStates::RenderTarget);
command_list->commitBarriers();
}
void GbufferBlitPass::Render(nvrhi::ICommandList* command_list,