Formalize camera frame render-graph blackboard resources

This commit is contained in:
2026-04-14 21:34:34 +08:00
parent 1e189ff558
commit 5b0a1743d9
5 changed files with 95 additions and 43 deletions

View File

@@ -107,8 +107,12 @@ bool BuiltinForwardPipeline::RecordMainSceneRenderGraph(
const RHI::ResourceStates sourceColorState = context.sourceColorState;
const std::vector<RenderGraphTextureHandle> colorTargets = context.colorTargets;
const RenderGraphTextureHandle depthTarget = context.depthTarget;
const CameraFrameRenderGraphResources* const frameResources =
TryGetCameraFrameRenderGraphResources(context.blackboard);
const RenderGraphTextureHandle mainDirectionalShadowTexture =
context.mainDirectionalShadowTexture;
frameResources != nullptr
? frameResources->mainDirectionalShadow
: RenderGraphTextureHandle{};
bool* const executionSucceeded = context.executionSucceeded;
const std::shared_ptr<ForwardSceneGraphExecutionState> graphExecutionState =
std::make_shared<ForwardSceneGraphExecutionState>();