Skip to content

Refactor FrameGraph pass API for flexibility#9571

Merged
pixelflinger merged 1 commit intomainfrom
ma/fg-more-cleanup
Jan 6, 2026
Merged

Refactor FrameGraph pass API for flexibility#9571
pixelflinger merged 1 commit intomainfrom
ma/fg-more-cleanup

Conversation

@pixelflinger
Copy link
Collaborator

This commit simplifies and unifies the FrameGraph's addPass API. Key changes:

  • The addPass method now uses a single, more flexible implementation that handles different lambda signatures for both the setup and execute stages.
  • The execute lambda can now optionally omit the DriverApi& parameter, reducing boilerplate for simple passes.
  • The addTrivialSideEffectPass helper has been removed. Side-effect-only passes can now be created directly with addPass

This commit simplifies and unifies the FrameGraph's `addPass` API.
Key changes:
- The `addPass` method now uses a single, more flexible implementation
  that handles different lambda signatures for both the setup and
  execute stages.
- The execute lambda can now optionally omit the `DriverApi&` parameter,
  reducing boilerplate for simple passes.
- The `addTrivialSideEffectPass` helper has been removed.
  Side-effect-only passes can now be created directly with `addPass`
@pixelflinger pixelflinger requested review from bejado and z3moon January 5, 2026 21:58
@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Jan 5, 2026
@pixelflinger pixelflinger merged commit 52ffd80 into main Jan 6, 2026
18 checks passed
@pixelflinger pixelflinger deleted the ma/fg-more-cleanup branch January 6, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants