Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
Makefile | D | 03-May-2024 | 185 | 5 | 4 | |
README.md | D | 03-May-2024 | 760 | 22 | 16 | |
gen_interface.go | D | 03-May-2024 | 13.9 KiB | 461 | 334 | |
interface.json5 | D | 03-May-2024 | 21.2 KiB | 700 | 605 | |
templates.go | D | 03-May-2024 | 9.8 KiB | 324 | 210 |
README.md
1GrGlInterface Autogeneration 2============================ 3 4Background 5---------- 6 7At a high level, the first three steps of making a GrGLInterface (a generic way to 8interact with a GL-like GPU) are: 9 10 - Assemble: Copy a set of function pointers into the struct 11 - Validate: Make sure the function pointers advertised actually exist. 12 - Capabilities: Compute what fast/slow paths are enabled based on the functions 13 in the struct (GrGLCaps, for short) 14 15Autogeneration 16-------------- 17 18The first two steps have been automated with a table-based generation script located 19in this folder. The table is in JSON5 format (like JSON, but with comments). O 20 21Once edited, the Assemble/Validate code can be re-generated by running 22`make generate` in this folder.