From 46eb050c9d0e0dae5708f0682b5034837bf2f111 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 4 Oct 2018 13:08:04 +1000 Subject: Cleanup: remove single backtick quotes This isn't valid RST. --- source/blender/python/gpu/gpu_py_batch.c | 2 +- source/blender/python/gpu/gpu_py_shader.c | 46 +++++++++++++++---------------- 2 files changed, 24 insertions(+), 24 deletions(-) (limited to 'source/blender/python/gpu') diff --git a/source/blender/python/gpu/gpu_py_batch.c b/source/blender/python/gpu/gpu_py_batch.c index cc0487cf6a9..c6acbcb0308 100644 --- a/source/blender/python/gpu/gpu_py_batch.c +++ b/source/blender/python/gpu/gpu_py_batch.c @@ -172,7 +172,7 @@ PyDoc_STRVAR(bpygpu_VertBatch_draw_doc, " Run the drawing program with the parameters assigned to the batch.\n" "\n" " :param program: program that performs the drawing operations. \n" -" If `None` is passed, the last program setted to this batch will run.\n" +" If ``None`` is passed, the last program setted to this batch will run.\n" " :type program: :class:`gpu.types.GPUShader`\n" ); static PyObject *bpygpu_VertBatch_draw(BPyGPUBatch *self, PyObject *args) diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c index 182ec289262..5aa467f1dfc 100644 --- a/source/blender/python/gpu/gpu_py_shader.c +++ b/source/blender/python/gpu/gpu_py_shader.c @@ -152,7 +152,7 @@ PyDoc_STRVAR(bpygpu_shader_transform_feedback_enable_doc, " Start transform feedback operation.\n" "\n" " :return: true if transform feedback was succesfully enabled.\n" -" :rtype: `bool`\n" +" :rtype: bool\n" ); static PyObject *bpygpu_shader_transform_feedback_enable( BPyGPUShader *self, PyObject *arg) @@ -181,9 +181,9 @@ PyDoc_STRVAR(bpygpu_shader_uniform_from_name_doc, " Get uniform location by name.\n" "\n" " :param name: name of the uniform variable whose location is to be queried.\n" -" :type name: `str`\n" +" :type name: str\n" " :return: the location of the uniform variable.\n" -" :rtype: `int`\n" +" :rtype: int\n" ); static PyObject *bpygpu_shader_uniform_from_name( BPyGPUShader *self, PyObject *arg) @@ -210,9 +210,9 @@ PyDoc_STRVAR(bpygpu_shader_uniform_block_from_name_doc, " Get uniform block location by name.\n" "\n" " :param name: name of the uniform block variable whose location is to be queried.\n" -" :type name: `str`\n" +" :type name: str\n" " :return: the location of the uniform block variable.\n" -" :rtype: `int`\n" +" :rtype: int\n" ); static PyObject *bpygpu_shader_uniform_block_from_name( BPyGPUShader *self, PyObject *arg) @@ -268,9 +268,9 @@ PyDoc_STRVAR(bpygpu_shader_uniform_vector_float_doc, " Set the buffer to fill the uniform.\n" "\n" " :param location: location of the uniform variable to be modified.\n" -" :type location: `int`\n" +" :type location: int\n" " :param buffer: buffer object with format float.\n" -" :type buffer: `buffer object`\n" +" :type buffer: buffer object\n" " :param length:\n" " size of the uniform data type:\n" "\n" @@ -281,9 +281,9 @@ PyDoc_STRVAR(bpygpu_shader_uniform_vector_float_doc, " - 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" -" :type count: `int`\n" +" :type length: int\n" +" :param count: specifies the number of elements, vector or matrices that are to be modified.\n" +" :type count: int\n" ); static PyObject *bpygpu_shader_uniform_vector_float( BPyGPUShader *self, PyObject *args) @@ -342,7 +342,7 @@ PyDoc_STRVAR(bpygpu_shader_uniform_bool_doc, " Specify the value of a uniform variable for the current program object.\n" "\n" " :param name: name of the uniform variable whose location is to be queried.\n" -" :type name: `str`\n" +" :type name: str\n" " :param seq: values that will be used to update the specified uniform variable.\n" " :type seq: sequence of bools\n" ); @@ -407,7 +407,7 @@ PyDoc_STRVAR(bpygpu_shader_uniform_float_doc, " Specify the value of a uniform variable for the current program object.\n" "\n" " :param name: name of the uniform variable whose location is to be queried.\n" -" :type name: `str`\n" +" :type name: str\n" " :param seq: values that will be used to update the specified uniform variable.\n" " :type seq: sequence of numbers\n" ); @@ -475,7 +475,7 @@ PyDoc_STRVAR(bpygpu_shader_uniform_int_doc, " Specify the value of a uniform variable for the current program object.\n" "\n" " :param name: name of the uniform variable whose location is to be queried.\n" -" :type name: `str`\n" +" :type name: str\n" " :param seq: values that will be used to update the specified uniform variable.\n" " :type seq: sequence of numbers\n" ); @@ -540,9 +540,9 @@ PyDoc_STRVAR(bpygpu_shader_attr_from_name_doc, " Get attribute location by name.\n" "\n" " :param name: the name of the attribute variable whose location is to be queried.\n" -" :type name: `str`\n" +" :type name: str\n" " :return: the location of an attribute variable.\n" -" :rtype: `int`\n" +" :rtype: int\n" ); static PyObject *bpygpu_shader_attr_from_name( BPyGPUShader *self, PyObject *arg) @@ -649,15 +649,15 @@ PyDoc_STRVAR(bpygpu_shader_doc, " to see full GLSL shader compilation and linking errors.\n" "\n" " :param vertexcode: vertex Shader Code.\n" -" :type vertexcode: `str`\n" +" :type vertexcode: str\n" " :param fragcode: fragment Shader Code.\n" -" :type value: `str`\n" +" :type value: str\n" " :param geocode: geometry Shader Code.\n" -" :type value: `str`\n" +" :type value: str\n" " :param libcode: code with functions and presets to be shared between shaders.\n" -" :type value: `str`\n" +" :type value: str\n" " :param defines: preprocessor directives.\n" -" :type value: `str`\n" +" :type value: str\n" ); PyTypeObject BPyGPUShader_Type = { PyVarObject_HEAD_INIT(NULL, 0) @@ -694,7 +694,7 @@ 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" +" :type shader_id: int\n" ); static PyObject *bpygpu_shader_from_builtin(PyObject *UNUSED(self), PyObject *arg) { @@ -712,9 +712,9 @@ 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" +" :type shader_id: int\n" " :return: vertex, fragment and geometry shader codes.\n" -" :rtype: `dict`\n" +" :rtype: dict\n" ); static PyObject *bpygpu_shader_code_from_builtin(BPyGPUShader *UNUSED(self), PyObject *arg) { -- cgit v1.2.3