From 92166ecd91dfd464307e5292d1357b6bb652d8d4 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 14 Nov 2018 12:26:34 +0100 Subject: 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. --- source/blender/python/gpu/gpu_py_shader.c | 35 ------------------------------- 1 file changed, 35 deletions(-) (limited to 'source/blender/python/gpu') 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}, -- cgit v1.2.3