This commit is contained in:
2026-09-25 20:39:04 -07:00
parent 341249bb96
commit 6e12d8a710
+9 -6
View File
@@ -84,7 +84,10 @@ class Application::Impl {
auto& renderTargetPool = this->resourceRegistry.renderTargetPool;
PanelRegistry& panelRegistry = this->application.panelRegistry;
const SceneViewRegistry& sceneViews = this->application.sceneViewRegistry;
SceneRegistry& sceneRegistry = this->application.sceneRegistry;
SceneViewRegistry& sceneViewRegistry = this->application.sceneViewRegistry;
const SceneViewRegistry& sceneViewRegistryConst =
this->application.sceneViewRegistry;
imguiRenderer.setDefaultLayout(panelRegistry.getDefaultLayout());
@@ -143,9 +146,9 @@ class Application::Impl {
graph.importImage(renderContext.getCurrentImage(), Access::Present);
std::map<RenderTargetHandle, ImageRef> viewTargets;
for (SceneViewHandle handle : sceneViews.GetRenderQueue()) {
const SceneView& view = sceneViews.get(handle);
if (!this->application.sceneRegistry.isAlive(view.scene) ||
for (SceneViewHandle handle : sceneViewRegistryConst.GetRenderQueue()) {
const SceneView& view = sceneViewRegistryConst.get(handle);
if (!sceneRegistry.isAlive(view.scene) ||
!renderTargetPool.isAlive(view.target)) {
continue;
}
@@ -167,8 +170,8 @@ class Application::Impl {
: vk::AttachmentLoadOp::eLoad,
{color.r, color.g, color.b, color.a});
},
[&sceneRenderer, &sceneViews, handle](vk::CommandBuffer) {
const SceneView& view = sceneViews.get(handle);
[&sceneRenderer, &sceneViewRegistry, handle](vk::CommandBuffer) {
const SceneView& view = sceneViewRegistry.get(handle);
if (view.camera) {
sceneRenderer.render(view);
}