ADD: HQ particles

This commit is contained in:
2025-12-18 17:32:30 +09:00
parent e2b13917c9
commit 531009cd22
9 changed files with 821 additions and 16 deletions

View File

@@ -1127,6 +1127,16 @@ void VulkanEngine::draw()
_textureCache->pumpLoads(*_resourceManager, get_current_frame());
}
// Allow passes to enqueue texture/image uploads before the upload pass snapshot.
// Particles use this to preload flipbooks/noise referenced by systems.
if (_renderPassManager)
{
if (auto *particles = _renderPassManager->getPass<ParticlePass>())
{
particles->preload_needed_textures();
}
}
_resourceManager->register_upload_pass(*_renderGraph, get_current_frame());
ImGuiPass *imguiPass = nullptr;
@@ -1193,7 +1203,7 @@ void VulkanEngine::draw()
if (auto *particles = _renderPassManager->getPass<ParticlePass>())
{
particles->register_graph(_renderGraph.get(), hdrTarget, hDepth);
particles->register_graph(_renderGraph.get(), hdrTarget, hDepth, hGBufferPosition);
}
if (auto *transparent = _renderPassManager->getPass<TransparentPass>())