diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2016-03-21 02:53:48 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2016-03-22 00:43:03 +0300 |
commit | 4acd218c0262f59edd2a0251d6c9530c8753349f (patch) | |
tree | 4c8c5e90ca4fa003b9f396105e07e8da9b31b0e7 /source/blender/gpu/GPU_shader.h | |
parent | 2c3985d9e684b855cc765863bd4af02fb72e3fe3 (diff) |
GPU compositing:
Minor optimization: Store the uniform interface of shaders instead of
re-querying every frame.
Diffstat (limited to 'source/blender/gpu/GPU_shader.h')
-rw-r--r-- | source/blender/gpu/GPU_shader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h index 0317976f9d0..4c674b460aa 100644 --- a/source/blender/gpu/GPU_shader.h +++ b/source/blender/gpu/GPU_shader.h @@ -69,6 +69,8 @@ void GPU_shader_free(GPUShader *shader); void GPU_shader_bind(GPUShader *shader); void GPU_shader_unbind(void); +void *GPU_shader_get_interface(GPUShader *shader); +void GPU_shader_set_interface(GPUShader *shader, void *interface); int GPU_shader_get_uniform(GPUShader *shader, const char *name); void GPU_shader_uniform_vector(GPUShader *shader, int location, int length, int arraysize, const float *value); |