diff options
Diffstat (limited to 'src/gpu/effect.h')
| -rw-r--r-- | src/gpu/effect.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h index 8055783..566faba 100644 --- a/src/gpu/effect.h +++ b/src/gpu/effect.h @@ -34,6 +34,13 @@ class Effect { const UniformsSequenceParams& params, NodeRegistry& nodes) = 0; + // Called after ALL effects in the sequence have rendered for this frame. + // Use for end-of-frame bookkeeping (e.g. copying temporal feedback buffers). + virtual void post_render(WGPUCommandEncoder encoder, NodeRegistry& nodes) { + (void)encoder; + (void)nodes; + } + virtual void resize(int width, int height) { width_ = width; height_ = height; |
