diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-09-14 15:32:19 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-09-14 15:46:19 +0300 |
commit | 1287965089a851c46e9a1a23c55ebc90b00b4e14 (patch) | |
tree | 430505da2894fda1e95ccb82b6bc4845ee7d5c4c /source/blender/python/gpu/gpu_py_types.c | |
parent | d15928c2344718e47d9025fe5b18ff033366dc5c (diff) |
GPU module: Initial implementation of the `gpu.shader` submodule.
Differential Revision: https://developer.blender.org/D3688
Diffstat (limited to 'source/blender/python/gpu/gpu_py_types.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_types.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/gpu/gpu_py_types.c b/source/blender/python/gpu/gpu_py_types.c index 62694189ce3..876d56ad761 100644 --- a/source/blender/python/gpu/gpu_py_types.c +++ b/source/blender/python/gpu/gpu_py_types.c @@ -57,6 +57,8 @@ PyObject *BPyInit_gpu_types(void) return NULL; if (PyType_Ready(&BPyGPUOffScreen_Type) < 0) return NULL; + if (PyType_Ready(&BPyGPUShader_Type) < 0) + return NULL; #define MODULE_TYPE_ADD(s, t) \ PyModule_AddObject(s, t.tp_name, (PyObject *)&t); Py_INCREF((PyObject *)&t) @@ -65,6 +67,7 @@ PyObject *BPyInit_gpu_types(void) MODULE_TYPE_ADD(submodule, BPyGPUVertBuf_Type); MODULE_TYPE_ADD(submodule, BPyGPUBatch_Type); MODULE_TYPE_ADD(submodule, BPyGPUOffScreen_Type); + MODULE_TYPE_ADD(submodule, BPyGPUShader_Type); #undef MODULE_TYPE_ADD |