From 4acd218c0262f59edd2a0251d6c9530c8753349f Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 21 Mar 2016 00:53:48 +0100 Subject: GPU compositing: Minor optimization: Store the uniform interface of shaders instead of re-querying every frame. --- source/blender/gpu/GPU_compositing.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/gpu/GPU_compositing.h') diff --git a/source/blender/gpu/GPU_compositing.h b/source/blender/gpu/GPU_compositing.h index 892fe4f3255..d506d91a9aa 100644 --- a/source/blender/gpu/GPU_compositing.h +++ b/source/blender/gpu/GPU_compositing.h @@ -44,6 +44,7 @@ struct GPUOffScreen; struct GPUFXSettings; struct rcti; struct Scene; +struct GPUShader; enum eGPUFXFlags; /**** Public API *****/ @@ -94,6 +95,10 @@ void GPU_fx_compositor_XRay_resolve(GPUFX *fx); void GPU_fx_compositor_init_dof_settings(struct GPUDOFSettings *dof); void GPU_fx_compositor_init_ssao_settings(struct GPUSSAOSettings *ssao); + + +/* initialize and cache the shader unform interface for effects */ +void GPU_fx_shader_init_interface(struct GPUShader *shader, GPUFXShaderEffect effect); #ifdef __cplusplus } #endif -- cgit v1.2.3