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:
authormano-wii <germano.costa@ig.com.br>2018-10-09 18:18:28 +0300
committermano-wii <germano.costa@ig.com.br>2018-10-09 18:18:28 +0300
commitb0b547bd1e2c5e1fe3abb509aae6d274143fd213 (patch)
tree616d3104f93cc6e616fcce031aef95400f5abafa
parent8fc8131bc9ca06c5d527c910141f85e7307b1017 (diff)
Python GPU: Update `shader.from_builtin` and `shader.code_from_builtin` description.
-rw-r--r--source/blender/python/gpu/gpu_py_shader.c30
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"
);