mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
PyDoc: use :param: instead of :arg: in Sphinx docstrings
While "arg" isn't deprecated "param" is preferred and used in all Sphinx's examples & tutorials. Ref !154039
This commit is contained in:
parent
40298aa015
commit
791505e2ed
96 changed files with 1131 additions and 1120 deletions
|
|
@ -11,11 +11,11 @@ def batch_for_shader(shader, type, content, *, indices=None):
|
|||
"""
|
||||
Return a batch already configured and compatible with the shader.
|
||||
|
||||
:arg shader: shader for which a compatible format will be computed.
|
||||
:param shader: shader for which a compatible format will be computed.
|
||||
:type shader: :class:`gpu.types.GPUShader`
|
||||
:arg type: "'POINTS', 'LINES', 'TRIS' or 'LINES_ADJ'".
|
||||
:param type: "'POINTS', 'LINES', 'TRIS' or 'LINES_ADJ'".
|
||||
:type type: str
|
||||
:arg content: Maps the name of the shader attribute with the data to fill the vertex buffer.
|
||||
:param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
|
||||
For the dictionary values see documentation for :class:`gpu.types.GPUVertBuf.attr_fill` data argument.
|
||||
:type content: dict[str, Buffer | Sequence[float] | Sequence[int] | \
|
||||
Sequence[Sequence[float]] | Sequence[Sequence[int]]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue