Age | Commit message (Collapse) | Author |
|
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
|
|
Needed for clan-format not to wrap onto one line.
|
|
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.
|
|
|
|
|
|
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.
|
|
Move gpu initialization checks to the start of each function instead
of mixing with argument parsing.
|
|
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.
|
|
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
|
|
|
|
|
|
It couldn't really be used in the current implementation, so it is better to remove it instead of confusing everyone.
|
|
Indentation & trailing space.
|
|
|
|
|
|
description.
|
|
|
|
This worked for float but not int.
|
|
Add checks to parse 3x3 or 4x4 matrices,
also use error from `mathutils_array_parse` instead of overwriting.
|
|
Allow to pass in single numbers, sequences and mathutils.* types into `shader.uniform_float`.
Reviewers: mano-wii
Differential Revision: https://developer.blender.org/D3820
|
|
|
|
|
|
|
|
description.
|
|
`shader.code_from_builtin`.
Also, the gpu.shader.builtin submodule becomes obsolete, so it has been removed.
|
|
Reviewers: mano-wii, fclem, campbellbarton
Differential Revision: https://developer.blender.org/D3772
|
|
|
|
"shader_code_from_builtin" to "from_builtin" and "code_from_builtin".
|
|
|
|
This isn't valid RST.
|
|
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
|
|
`_PyArg_ParseTupleAndKeywordsFast`
part of T47811 ("for faster argument parsing").
|
|
|
|
The existing alternative is to use a buffer and call
uniform_vector_float which is overkill for such a simple operation.
|
|
|
|
|
|
|
|
Also some syntax corrections.
|
|
Differential Revision: https://developer.blender.org/D3688
|