diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-09-20 22:51:02 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-09-20 22:51:06 +0300 |
commit | 425cfdd5be12a0c167bd55eeb1ac84d37b7f2ead (patch) | |
tree | 8b69c4b0e7f71cb841ff94176827ca57a8d6e660 /source/blender/gpu/GPU_shader.h | |
parent | e316e41f847004f80838d0c7becaa7be80cc8711 (diff) |
GPU Python API: shader.uniform_float
The existing alternative is to use a buffer and call
uniform_vector_float which is overkill for such a simple operation.
Diffstat (limited to 'source/blender/gpu/GPU_shader.h')
-rw-r--r-- | source/blender/gpu/GPU_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h index f4fc568c6ff..21d5b5871fa 100644 --- a/source/blender/gpu/GPU_shader.h +++ b/source/blender/gpu/GPU_shader.h @@ -93,6 +93,7 @@ void GPU_shader_uniform_vector_int( void GPU_shader_uniform_buffer(GPUShader *shader, int location, struct GPUUniformBuffer *ubo); void GPU_shader_uniform_texture(GPUShader *shader, int location, struct GPUTexture *tex); +void GPU_shader_uniform_float(GPUShader *shader, int location, float value); void GPU_shader_uniform_int(GPUShader *shader, int location, int value); void GPU_shader_geometry_stage_primitive_io(GPUShader *shader, int input, int output, int number); |