Skip to main content

add-gles-test

Add an GLES / OpenGL ES test or microbenchmark

Aller à l'installation

Informations de source

Dépôt
ARM-software/tracetooltests
Dernière activité de la source
7 juin 2026 à 17:31
Langue détectée de SKILL.md
anglais
Étoiles
9
Forks
13

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
add-gles-test
description
Add an GLES / OpenGL ES test or microbenchmark
metadata
{"short-description":"Add a GLES test"}
## Add A New GLES Test - Create source `src/gles_<name>.cpp` and a bench file `benchmarking/gles_<name>.bench`. - Register the test in `CMakeLists.txt` with `gles_test(<name>)`. - Build with 'make -j6' - Run test as: `ctest -R gles_<name> --output-on-failure`. Minimal `src/gles_<name>.cpp`: ```cpp #include "gles_common.h" static int setup_graphics(TOOLSTEST *handle) { // ... set up context here ... } static void callback_draw(TOOLSTEST *handle) { // ... do work here ... } static void test_cleanup(TOOLSTEST *handle) { // ... cleanup here ... } int main(int argc, char** argv) { return init(argc, argv, "gles_<name>.cpp", callback_draw, setup_graphics, test_cleanup); } ``` Minimal `benchmarking/gles_<name>.bench`: ```json { "name": "gles_<name>", "description": "<short description of test>" } ```
Voir sur GitHub