blender/release
Germano Cavalcante 086d70e910 GPU Python: Use 'PyC_ParseStringEnum' to parse items
Currently the GPU module for python has different ways to handle enums.
- Organizing items in `PyC_StringEnumItems` arrays and parsing them with `PyC_ParseStringEnum`.
- Using dedicated functions for each type of enum (`bpygpu_ParsePrimType`, `pygpu_ParseVertCompType` and `pygpu_ParseVertFetchMode`).

Although apparently more efficient (especially `pygpu_ParseVertCompType`
which transforms strings into integers for simple comparison), these
dedicated functions duplicate functionality, increase the complexity of
the code and consequently make it less readable.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D10456
2021-02-22 08:35:52 -03:00
..
bin
darwin UI: use system generated document icon on macOS 2021-02-03 17:14:46 +01:00
datafiles OpenColorIO: upgrade to version 2.0.0 2021-02-12 19:06:35 +01:00
freedesktop Linux: 2.90 release information in appdata 2020-08-31 11:21:01 +02:00
license Licenses: Attribution document 2020-12-11 18:44:11 +01:00
lts Blender LTS: Download + Release notes CMS scripts 2020-12-09 09:14:53 +01:00
scripts GPU Python: Use 'PyC_ParseStringEnum' to parse items 2021-02-22 08:35:52 -03:00
steam Steam Release: Script creation of Steam build files 2020-12-16 11:15:18 +01:00
text Move license files to license subfolder 2020-09-24 12:49:36 +02:00
windows Windows: Add "--debug-cycles" argument to "blender_debug_gpu.bat" batch file 2021-01-21 16:47:16 +01:00