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
2020-12-11Fix error in recent commitGermano Cavalcante
Introduced in rBcada56b1f72f537f9ab007cfafd430ac10c292fb
2020-12-11Cleanup: Python GPU: change prefix 'bpygpu_' to 'py_' in static functionsGermano Cavalcante
2020-12-11Cleanup: GPU Python: Use 'PyC_ParseStringEnum' for string enumGermano Cavalcante
2020-11-13Adding 3D_POLYLINE_UNIFORM_COLOR to PyGPU shader APIYimingWu
This would allow python script to access `lineWidth` uniform when drawing lines without using `glLineWidth`. Reviewed By: Jeroen Bakker Differential Revision: https://developer.blender.org/D9518
2020-10-12Pydoc: Move builtin GPU shader information to codeAaron Carlisle
This fixes a compile warning for sphinx. This commit includes some reformating of the information.
2020-10-12Cleanup: Pydoc stringsAaron Carlisle
2020-09-11Cleanup: spelling, correct commentsCampbell Barton
2020-08-20Cleanup: use const variables where possible in the Python APICampbell Barton
2020-08-18GPUShader: GL backend isolationClément Foucault
2020-06-02Cleanup: GPU: Remove GPU_shaderinterface_uniform_ensureClément Foucault
2020-06-02GPU: ShaderInterface: Refactor to setup all uniform at creation timeClément Foucault
This remove the complexity of queriying the locations at runtime and allows for more performance and upfront binding specifications. The benefit of doing everything at creation time is that we can assign binding points in a predictable order which is going to be somewhat the same for every similar shader. This also rewrite GPU_vertformat_from_shader to not use shaderface. This is to keep the shaderface simple. If it becomes necessary to not query the shader after creation (i.e: vulkan?) we could just create the vert format in advance at compilation for PyGPU shaders. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7879
2020-04-14GPUShader: Implement workaround for gizmo drawing on sRGB framebufferClément Foucault
This solution involves adding a uniform to each fragment shader that is used by gizmo drawing and use the framebuffer state to set this uniform accordingly. This solution can also be carried to external shaders (addons). A single line of code would then be enough to fix the issue. The only trickery here is the dummy define: `#define srgb_to_framebuffer_space(a)` This is in order to avoid breaking other DRW shaders that use the same fragment shader code but do not need the tranformation. Related to T74139 Reviewed By: brecht, campbellbarton Differential Revision: https://developer.blender.org/D7261
2019-12-20Cleanup: remove redundant 'char *' castsCampbell Barton
2019-09-13Cleanup: unused headers (GPU)Campbell Barton
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").