Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-02Cleanup: doxy sectionsCampbell Barton
2019-06-05Python GPU Shader: Fix crash when uniform is not found.mano-wii
Error in string format.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: blank lines over doxy headersCampbell Barton
2019-01-23Cleanup: use eGPU prefix for GPU enum typesCampbell Barton
2019-01-17GPU: Rename GPU_shader_get_uniform to GPU_shader_get_uniform_ensureClément Foucault
This is in order to make the API more multithread friendly inside the draw manager. GPU_shader_get_uniform will only serve to query the shader interface and not do any GL call, making it threadsafe. For now it only print a warning if the uniform was not queried before.
2019-01-02Cleanup: py-gpu error checksCampbell Barton
Move gpu initialization checks to the start of each function instead of mixing with argument parsing.
2019-01-02Revert file rename from T59773 fixCampbell Barton
Mixing file rename with other changes should be avoided. Using 'module_py_api' convention here is in keeping with imbuf, idprop, blf & bmesh. No reason for gpu to have a different convention.
2019-01-02Fix T59773: Raise exception if the gpu module is used in backgound mode.mano-wii
Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context. Reviewers: brecht, campbellbarton, JacquesLucke, mont29 Subscribers: abdelmatinboulbayam, amir.shehata Differential Revision: https://developer.blender.org/D4143
2018-11-14minor cleanupJacques Lucke
2018-11-14minor cleanupJacques Lucke
2018-11-14Py API: Remove GPUShader.transform_feedback_enable/disableJacques Lucke
It couldn't really be used in the current implementation, so it is better to remove it instead of confusing everyone.
2018-11-14Cleanup: python doc-stringsCampbell Barton
Indentation & trailing space.
2018-11-13Py API Docs: CleanupJacques Lucke
2018-11-05API Docs: gpu api introduction + examplesJacques Lucke
2018-10-30PyAPI: GPU: improve GPUShader.from_builtin and GPUShader.code_from_builtin ↵mano-wii
description.
2018-10-28Cleanup: fix compiler warnings.Brecht Van Lommel
2018-10-26Fix parsing single int for uniform_intCampbell Barton
This worked for float but not int.
2018-10-24GPUShader: shader.uniform_float, matrix parsingCampbell Barton
Add checks to parse 3x3 or 4x4 matrices, also use error from `mathutils_array_parse` instead of overwriting.
2018-10-23GPUShader: shader.uniform_float parametersJacques Lucke
Allow to pass in single numbers, sequences and mathutils.* types into `shader.uniform_float`. Reviewers: mano-wii Differential Revision: https://developer.blender.org/D3820
2018-10-23Cleanup: rename VertBuf.fill_attribute > attr_fillCampbell Barton
2018-10-22Python API: fix docstringsJacques Lucke
2018-10-12Python GPU: Best description for exceptionsmano-wii
2018-10-09Python GPU: Update `shader.from_builtin` and `shader.code_from_builtin` ↵mano-wii
description.
2018-10-09GPU Python: Use string literals in `shader.from_builtin` and ↵mano-wii
`shader.code_from_builtin`. Also, the gpu.shader.builtin submodule becomes obsolete, so it has been removed.
2018-10-09Python API: new GPUShader.format_calc() methodJacques Lucke
Reviewers: mano-wii, fclem, campbellbarton Differential Revision: https://developer.blender.org/D3772
2018-10-05Cleanup: use PyModule_AddIntConstantmano-wii
2018-10-04GPU Python: rename methods "shader_from_builtin" and ↵mano-wii
"shader_code_from_builtin" to "from_builtin" and "code_from_builtin".
2018-10-04GPU Python: Fix assert in PySequence_Fast_GET_SIZEmano-wii
2018-10-04Cleanup: remove single backtick quotesCampbell Barton
This isn't valid RST.
2018-10-04Python GPU: GPUBatch and GPUShader refactor.mano-wii
The changes are: - The shader now is passed as a parameter of the batch `draw` method (batch.draw(shader)). Since the batch always has to set a shader before drawing; - The batch methods to specify a value to a uniform have been removed. Uniforms are parameters of the program (here called shader). If you change a uniform, it changes in all batchs that use the same program; - New methods were added to set uniforms by the shader; - The `batch.program_set_builtin` was removed. It is a duplicate of `program_set` but without a shader object. We need the shader object to configure the uniform; Differential Revision: https://developer.blender.org/D3752
2018-09-27Python GPU module: replace `PyArg_ParseTupleAndKeywords` by ↵mano-wii
`_PyArg_ParseTupleAndKeywordsFast` part of T47811 ("for faster argument parsing").
2018-09-21Cleanup: styleCampbell Barton
2018-09-20GPU Python API: shader.uniform_floatDalai Felinto
The existing alternative is to use a buffer and call uniform_vector_float which is overkill for such a simple operation.
2018-09-20Typo on pydoc for uniform_intDalai Felinto
2018-09-20gpu.shader module: Do not free builtin shaders.mano-wii
2018-09-20gpu.shader.builtin module: Add GPU_SHADER_2D_IMAGE.mano-wii
2018-09-15PyDoc: add gpu.shaderCampbell Barton
Also some syntax corrections.
2018-09-14GPU module: Initial implementation of the `gpu.shader` submodule.mano-wii
Differential Revision: https://developer.blender.org/D3688