diff options
Diffstat (limited to 'source/blender/viewport_compositor/VPC_context.hh')
-rw-r--r-- | source/blender/viewport_compositor/VPC_context.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/viewport_compositor/VPC_context.hh b/source/blender/viewport_compositor/VPC_context.hh index 6d80510e48c..a6494936f4f 100644 --- a/source/blender/viewport_compositor/VPC_context.hh +++ b/source/blender/viewport_compositor/VPC_context.hh @@ -3,6 +3,8 @@ #pragma once +#include "BLI_math_vec_types.hh" + #include "DNA_scene_types.h" #include "GPU_texture.h" @@ -25,6 +27,9 @@ class Context { /* Get the active compositing scene. */ virtual const Scene *get_scene() = 0; + /* Get the dimensions of the viewport. */ + virtual int2 get_viewport_size() = 0; + /* Get the texture representing the viewport where the result of the compositor should be * written. This should be called by output nodes to get their target texture. */ virtual GPUTexture *get_viewport_texture() = 0; |