diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-09-15 19:41:28 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-09-15 19:41:28 +0300 |
commit | 5eddb8051382aa4406f6fb33b3eb0f748c6d1911 (patch) | |
tree | 186c1783c89e23d7f6cf4d42055ecd8c34c169fb /source/blender/gpu/GPU_batch.h | |
parent | 39f7a8117692da3a6645ccb7ae2080077f9e5980 (diff) |
Extend Gawain to use Blender's built-in shaders
Was already done for immediate mode, but rearranged code to make a clean separation. Cleaned up #includes for code that uses this feature.
Added same for batched rendering.
Diffstat (limited to 'source/blender/gpu/GPU_batch.h')
-rw-r--r-- | source/blender/gpu/GPU_batch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_batch.h b/source/blender/gpu/GPU_batch.h index 10b00c3375f..bc3017e2784 100644 --- a/source/blender/gpu/GPU_batch.h +++ b/source/blender/gpu/GPU_batch.h @@ -31,3 +31,7 @@ #pragma once #include "gawain/batch.h" +#include "GPU_shader.h" + +/* Extend Batch_set_program to use Blender’s library of built-in shader programs. */ +void Batch_set_builtin_program(Batch*, GPUBuiltinShader); |