Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2016-03-21 02:53:48 +0300
committerAntony Riakiotakis <kalast@gmail.com>2016-03-22 00:43:03 +0300
commit4acd218c0262f59edd2a0251d6c9530c8753349f (patch)
tree4c8c5e90ca4fa003b9f396105e07e8da9b31b0e7 /source/blender/gpu/GPU_compositing.h
parent2c3985d9e684b855cc765863bd4af02fb72e3fe3 (diff)
GPU compositing:
Minor optimization: Store the uniform interface of shaders instead of re-querying every frame.
Diffstat (limited to 'source/blender/gpu/GPU_compositing.h')
-rw-r--r--source/blender/gpu/GPU_compositing.h5
1 files changed, 5 insertions, 0 deletions
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