Skip to content

Plugin Hooks

tobspr edited this page Nov 12, 2015 · 5 revisions

Plugin Hooks

Available hooks are:

on_stage_setup

This hook gets called when the pipeline starts to setup the render stages. You should create your stages in this hook.


on_pipeline_created

This hook gets called when the pipeline finished the intialization and is about to render the first frame.

on_shader_reload

This hook gets called when a manual shader reload got triggered. Usualy you don't need to bind to this hook, all shaders of your RenderStages are reloaded automatically.

pre_render_update

This hook gets called before each frame is rendered. You should do your update logic here.

post_render_update

This hook gets calleed after each frame is rendered. You should not do any update logic here, since it will only be visible in the next frame, but instead do any cleanups if required.