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:
authorJacques Lucke <mail@jlucke.com>2018-11-14 14:26:34 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-14 14:27:09 +0300
commit92166ecd91dfd464307e5292d1357b6bb652d8d4 (patch)
tree082c3f2a31028df192704a892aeb24cdeca0f786 /source/blender/python/gpu
parent5c27c76ed3a9683c5d54745add6713eb562996e8 (diff)
Py API: Remove GPUShader.transform_feedback_enable/disable
It couldn't really be used in the current implementation, so it is better to remove it instead of confusing everyone.
Diffstat (limited to 'source/blender/python/gpu')
-rw-r--r--source/blender/python/gpu/gpu_py_shader.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c
index 46acf22d7e2..eeacd087884 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -153,35 +153,6 @@ static PyObject *bpygpu_shader_bind(BPyGPUShader *self)
Py_RETURN_NONE;
}
-PyDoc_STRVAR(bpygpu_shader_transform_feedback_enable_doc,
-".. method:: transform_feedback_enable(vbo_id)\n"
-"\n"
-" Start transform feedback operation.\n"
-"\n"
-" :return: true if transform feedback was succesfully enabled.\n"
-" :rtype: `bool`\n"
-);
-static PyObject *bpygpu_shader_transform_feedback_enable(
- BPyGPUShader *self, PyObject *arg)
-{
- uint vbo_id;
- if ((vbo_id = PyC_Long_AsU32(arg)) == (uint)-1) {
- return NULL;
- }
- return PyBool_FromLong(GPU_shader_transform_feedback_enable(self->shader, vbo_id));
-}
-
-PyDoc_STRVAR(bpygpu_shader_transform_feedback_disable_doc,
-".. method:: transform_feedback_disable()\n"
-"\n"
-" Disable transform feedback.\n"
-);
-static PyObject *bpygpu_transform_feedback_disable(BPyGPUShader *self)
-{
- GPU_shader_transform_feedback_disable(self->shader);
- Py_RETURN_NONE;
-}
-
PyDoc_STRVAR(bpygpu_shader_uniform_from_name_doc,
".. method:: uniform_from_name(name)\n"
"\n"
@@ -610,12 +581,6 @@ static PyObject *bpygpu_shader_calc_format(BPyGPUShader *self, PyObject *UNUSED(
static struct PyMethodDef bpygpu_shader_methods[] = {
{"bind", (PyCFunction)bpygpu_shader_bind,
METH_NOARGS, bpygpu_shader_bind_doc},
- {"transform_feedback_enable",
- (PyCFunction)bpygpu_shader_transform_feedback_enable,
- METH_O, bpygpu_shader_transform_feedback_enable_doc},
- {"transform_feedback_disable",
- (PyCFunction)bpygpu_transform_feedback_disable,
- METH_NOARGS, bpygpu_shader_transform_feedback_disable_doc},
{"uniform_from_name",
(PyCFunction)bpygpu_shader_uniform_from_name,
METH_O, bpygpu_shader_uniform_from_name_doc},