From a8e9959e07a05f08cbe28a3b37c0b24874f6f76f Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 5 Nov 2018 19:26:53 +0100 Subject: API Docs: gpu api introduction + examples --- source/blender/python/gpu/gpu_py_api.c | 3 ++- source/blender/python/gpu/gpu_py_shader.c | 14 -------------- 2 files changed, 2 insertions(+), 15 deletions(-) (limited to 'source/blender/python/gpu') diff --git a/source/blender/python/gpu/gpu_py_api.c b/source/blender/python/gpu/gpu_py_api.c index b75e63dbecc..3fad5425a6c 100644 --- a/source/blender/python/gpu/gpu_py_api.c +++ b/source/blender/python/gpu/gpu_py_api.c @@ -41,7 +41,8 @@ #include "gpu_py_api.h" /* own include */ PyDoc_STRVAR(GPU_doc, -"This module to provide functions concerning the GPU implementation in Blender." +"This module provides Python wrappers for the GPU implementation in Blender. " +"Some higher level functions can be found in the `gpu_extras` module. " "\n\n" "Submodules:\n" "\n" diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index 91a2d3843ce..4569e64eb62 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -743,20 +743,6 @@ PyDoc_STRVAR(bpygpu_shader_from_builtin_doc, "\n" "Shaders that are embedded in the blender internal code.\n" "They all read the uniform 'mat4 ModelViewProjectionMatrix', which can be edited by the 'gpu.matrix' module.\n" -" '2D_UNIFORM_COLOR' (attribute: 'vec3 pos'; uniform: 'vec4 color');\n" -"\n" -" '2D_FLAT_COLOR' (attribute: 'vec4 color', 'vec3 pos');\n" -"\n" -" '2D_SMOOTH_COLOR' (attribute: 'vec4 color', 'vec3 pos');\n" -"\n" -" '2D_IMAGE' (attribute: 'vec2 texCoord', 'vec2 pos');\n" -"\n" -" '3D_UNIFORM_COLOR' (attribute: 'vec3 pos'; uniform: 'vec4 color');\n" -"\n" -" '3D_FLAT_COLOR' (attribute: 'vec4 color', 'vec3 pos');\n" -"\n" -" '3D_SMOOTH_COLOR (attribute: 'vec4 color', 'vec3 pos');\n" -"\n" "For more details, you can check the shader code with the function 'gpu.shader.code_from_builtin';\n" "\n" " :param shader_name: One of these builtin shader names: {\n" -- cgit v1.2.3