diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-10-12 01:19:42 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-10-12 01:19:42 +0300 |
commit | 1b575cbb75c3cfd402374a876c2e900f31dda791 (patch) | |
tree | da2cd3c86e3c556b2b49b97f783b1e3ce502a82e /source/blender/python/gpu/gpu_py_shader.c | |
parent | e8a29312999baa7191c15dfeda61e7d28c78c337 (diff) |
Cleanup: Pydoc strings
Diffstat (limited to 'source/blender/python/gpu/gpu_py_shader.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 66 |
1 files changed, 31 insertions, 35 deletions
diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index 55753e91f14..7734c80abc4 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -231,15 +231,13 @@ PyDoc_STRVAR(bpygpu_shader_uniform_vector_float_doc, " :type location: int\n" " :param buffer: The data that should be set. Can support the buffer protocol.\n" " :type buffer: sequence of floats\n" - " :param length: Size of the uniform data type:\n" - "\n" + " :param length: Size of the uniform data type:\n\n" " - 1: float\n" " - 2: vec2 or float[2]\n" " - 3: vec3 or float[3]\n" " - 4: vec4 or float[4]\n" " - 9: mat3\n" " - 16: mat4\n" - "\n" " :type length: int\n" " :param count: Specifies the number of elements, vector or matrices that are to " "be modified.\n" @@ -597,22 +595,20 @@ PyDoc_STRVAR( " GPUShader combines multiple GLSL shaders into a program used for drawing.\n" " It must contain a vertex and fragment shaders, with an optional geometry shader.\n" "\n" - " The GLSL #version directive is automatically included at the top of shaders, and set to " - "330.\n" - " Some preprocessor directives are automatically added according to the Operating System or " - "availability:\n" - " ``GPU_ATI``, ``GPU_NVIDIA`` and ``GPU_INTEL``.\n" + " The GLSL ``#version`` directive is automatically included at the top of shaders,\n" + " and set to 330. Some preprocessor directives are automatically added according to\n" + " the Operating System or availability: ``GPU_ATI``, ``GPU_NVIDIA`` and ``GPU_INTEL``.\n" "\n" " The following extensions are enabled by default if supported by the GPU:\n" - " ``GL_ARB_texture_gather``, ``GL_ARB_texture_cube_map_array`` and " - "``GL_ARB_shader_draw_parameters``.\n" + " ``GL_ARB_texture_gather``, ``GL_ARB_texture_cube_map_array``\n" + " and ``GL_ARB_shader_draw_parameters``.\n" "\n" - " To debug shaders, use the ``--debug-gpu-shaders`` command line option " - "to see full GLSL shader compilation and linking errors.\n" + " To debug shaders, use the ``--debug-gpu-shaders`` command line option\n" + " to see full GLSL shader compilation and linking errors.\n" "\n" - " For drawing user interface elements and gizmos, use " - "``fragOutput = blender_srgb_to_framebuffer_space(fragOutput)`` " - "to transform the output sRGB colors to the frame-buffer color-space." + " For drawing user interface elements and gizmos, use\n" + " ``fragOutput = blender_srgb_to_framebuffer_space(fragOutput)``\n" + " to transform the output sRGB colors to the frame-buffer color-space.\n" "\n" " :param vertexcode: Vertex shader code.\n" " :type vertexcode: str\n" @@ -655,19 +651,19 @@ PyDoc_STRVAR(bpygpu_shader_from_builtin_doc, ".. function:: from_builtin(shader_name)\n" "\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" - " For more details, you can check the shader code with the function " - "'gpu.shader.code_from_builtin';\n" + " They all read the uniform ``mat4 ModelViewProjectionMatrix``,\n" + " which can be edited by the :mod:`gpu.matrix` module.\n" + " For more details, you can check the shader code with the\n" + " :func:`gpu.shader.code_from_builtin` function.\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" + " :param shader_name: One of these builtin shader names:\n\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: Shader object corresponding to the given name.\n" " :rtype: :class:`bpy.types.GPUShader`\n"); @@ -691,14 +687,14 @@ PyDoc_STRVAR(bpygpu_shader_code_from_builtin_doc, "\n" " Exposes the internal shader code for query.\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" + " :param shader_name: One of these builtin shader names:\n\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"); |