diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-09 18:18:28 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-09 18:18:28 +0300 |
commit | b0b547bd1e2c5e1fe3abb509aae6d274143fd213 (patch) | |
tree | 616d3104f93cc6e616fcce031aef95400f5abafa /source/blender/python/gpu/gpu_py_shader.c | |
parent | 8fc8131bc9ca06c5d527c910141f85e7307b1017 (diff) |
Python GPU: Update `shader.from_builtin` and `shader.code_from_builtin` description.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index 4d73d45412e..2bcf1ab0618 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -725,10 +725,17 @@ static PyObject *bpygpu_shader_unbind(BPyGPUShader *UNUSED(self)) } PyDoc_STRVAR(bpygpu_shader_from_builtin_doc, -".. function:: shader_from_builtin(shader_id)\n" -"\n" -" :param shader_id: shader identifier.\n" -" :type shader_id: int\n" +".. function:: shader_from_builtin(shader_name)\n" +"\n" +" :param shader_name: One of these builtin shader names: {\n" +" '2D_UNIFORM_COLOR',\n" +" '2D_FLAT_COLOR',\n" +" '2D_SMOOTH_COLOR',\n" +" '2D_IMAGE',\n" +" '3D_UNIFORM_COLOR',\n" +" '3D_FLAT_COLOR',\n" +" '3D_SMOOTH_COLOR'}\n" +" :type shader_name: str\n" ); static PyObject *bpygpu_shader_from_builtin(PyObject *UNUSED(self), PyObject *arg) { @@ -744,10 +751,17 @@ static PyObject *bpygpu_shader_from_builtin(PyObject *UNUSED(self), PyObject *ar } PyDoc_STRVAR(bpygpu_shader_code_from_builtin_doc, -".. function:: shader_code_from_builtin(shader_id)\n" -"\n" -" :param shader_id: shader identifier.\n" -" :type shader_id: int\n" +".. function:: shader_code_from_builtin(shader_name)\n" +"\n" +" :param shader_name: One of these builtin shader names: {\n" +" '2D_UNIFORM_COLOR',\n" +" '2D_FLAT_COLOR',\n" +" '2D_SMOOTH_COLOR',\n" +" '2D_IMAGE',\n" +" '3D_UNIFORM_COLOR',\n" +" '3D_FLAT_COLOR',\n" +" '3D_SMOOTH_COLOR'}\n" +" :type shader_name: str\n" " :return: vertex, fragment and geometry shader codes.\n" " :rtype: dict\n" ); |