diff options
author | Germano Cavalcante <mano-wii> | 2021-03-01 23:35:10 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-03-01 23:38:57 +0300 |
commit | 6c6b1c015c570e728b007cd94723eb2c711bec4b (patch) | |
tree | c40229a8009a9501acad51b91f09a87d0a4e4914 /doc/python_api | |
parent | f39143bc2ed4eb33bb85a3d923cb457384141bf8 (diff) |
GPU Python: Implement gpu.texture.from_image
It can be useful to replace `image.bindcode` and `image.gl_load`.
Used for example in https://docs.blender.org/api/current/gpu.html#d-image
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D10458
Diffstat (limited to 'doc/python_api')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 2b659de1cf8..5c6cf24a178 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -253,6 +253,7 @@ else: "gpu.select", "gpu.shader", "gpu.state", + "gpu.texture", "gpu_extras", "idprop.types", "mathutils", @@ -1981,10 +1982,11 @@ def write_rst_importable_modules(basepath): "imbuf.types": "Image Buffer Types", "gpu": "GPU Shader Module", "gpu.types": "GPU Types", - "gpu.matrix": "GPU Matrix", - "gpu.select": "GPU Select", - "gpu.shader": "GPU Shader", - "gpu.state": "GPU State", + "gpu.matrix": "GPU Matrix Utilities", + "gpu.select": "GPU Select Utilities", + "gpu.shader": "GPU Shader Utilities", + "gpu.state": "GPU State Utilities", + "gpu.texture": "GPU Texture Utilities", "bmesh": "BMesh Module", "bmesh.ops": "BMesh Operators", "bmesh.types": "BMesh Types", |