filament-desktop-testing
Execute unit tests and performance benchmarks for Filament on desktop platforms. Use this skill to run and filter tests or benchmarks locally.
- License 许可
- Apache-2.0
- 所属仓库
- google/filament
- 最近更新
- 2026-11-12
- Stars
- ★ 2.1w
- Forks
- 2.3k
01 前言 Front Matter
- name
- filament-desktop-testing
- description
- Execute unit tests and performance benchmarks for Filament on desktop platforms. Use this skill to run and filter tests or benchmarks locally.
03 SKILL.md 正文
Filament Desktop Testing and Benchmarking
This skill covers running tests and performance benchmarks on desktop platforms.
1. Executing a Unit Test
Run compiled unit test binaries directly from their respective build output directories.
Example: Running utils unit tests (Debug)
./out/cmake-debug/libs/utils/test_utils
Example: Running filament unit tests (Debug)
./out/cmake-debug/filament/test/test_filament
Filtering Tests
Use standard Google Test (gtest) command-line parameters to run a subset of tests:
./out/cmake-debug/filament/test/test_filament --gtest_filter=Suite.TestName
2. Executing a Benchmark
Run compiled performance benchmarks from the release build output directories.
Example: Running filament benchmarks (Release)
./out/cmake-release/filament/benchmark/benchmark_filament
Filtering Benchmarks
Use standard Google Benchmark parameters to filter specific benchmarks:
./out/cmake-release/filament/benchmark/benchmark_filament --benchmark_filter=lutGeneration
04 同仓库更多 Skills
filament-math
Enforce correct mathematical primitives and naming conventions in Filament code. Use this skill when performing coordinate transformations, vector math, or projection setups.
filament-lifetime
Enforce correct Filament object creation and destruction lifecycles. Use this skill when initializing rendering pipelines or allocating/deallocating GPU buffers and entities.
cherry-pick
Cherry-pick a commit onto another branch and open the PR. Use when the user asks to cherry-pick or backport a commit or PR to a release branch.
verification-protocols
Standard verification pipeline to execute after modifying C++ source or header files. Use this skill to format includes, build the engine, and run core tests.
preprocessor-guard-hygiene
Enforce preprocessor guard rules and macro-dependent inclusion hygiene in C++. Use this skill when modifying conditional imports or preprocessor directives.
header-self-containment
Enforce strict header self-containment so that every header file compiles independently. Use this skill when creating or modifying C++ header files.