bindings-synchronization
Skill21k starsChanged 3 years agoApache-2.0View on GitHub
Guidelines and SOP for synchronizing public C++ API changes (methods, enums, options structs) to Java (Android JNI) and JavaScript/TypeScript (Web/WASM Embind).
Trending
More talk lately.about the whole repository
Who's talking about google/filament
- @romainguy.dev“Android XR was unveiled today! You can download the preview SDK today and start using the Compose and …”Bluesky · Dec 12, 2024 · 131 likes
- godotengine/godot“[DRAFT] A Collection of Scene Shader Fixes”GitHub · Dec 13, 2024 · 44 reactions
- godotengine/godot“Properly conserve energy when calculating ambient lighting.”GitHub · Sep 11, 2026 · 12 reactions
- glfw/glfw“Use sRGB colour space by default on macOS”GitHub · Jul 26, 2025 · 5 reactions
- conan-io/conan-center-index“[request] filament/1.12.0”GitHub · Aug 18, 2021 · 4 reactions
The biggest 5 of 43 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 43
Talked about on GitHub, Bluesky and Hacker News (43 times).
On GitHub · 38
- Dec 13, 2024[DRAFT] A Collection of Scene Shader Fixes — godotengine/godot44 reactions · 4 comments
- Sep 11, 2026Properly conserve energy when calculating ambient lighting. — godotengine/godot12 reactions · 4 comments
- Jul 26, 2025Use sRGB colour space by default on macOS — glfw/glfw5 reactions · 1 comment
- Aug 18, 2021[request] filament/1.12.0 — conan-io/conan-center-index4 reactions · 1 comment
- May 13, 2024Add emissive_exposure_weight to the StandardMaterial — bevyengine/bevy2 reactions · 1 comment
33 more on GitHub
- Jan 15, 2022Use amount and perceptual roughness constants from Filament. — godotengine/godot2 reactions · 12 comments
- Aug 13, 2026📝 Record initial configured-source skill reviews — CypherPoet/custom-agent-skills1 reaction
- Mar 8, 2026TASK-010: Cross-Platform Sample App — matt-goldman/filament1 reaction
- Mar 8, 2026TASK-006: iOS Objective-C++ Wrapper Framework — matt-goldman/filament1 reaction
- Mar 9, 2025Renderer API — google-deepmind/mujoco1 reaction · 13 comments
- Aug 20, 2024volume — galacean/engine1 reaction · 8 comments
- Jun 14, 2024Include extended asset loader android — Fieldwire/filament1 reaction
- May 5, 2024wanted: filament — bazelbuild/bazel-central-registry1 reaction
- Dec 25, 2022The reference information regarding the use of cgltf_load_buffer_base64 is unclear — jkuhlmann/cgltf1 reaction
- Jun 13, 2022Fixed synchronization of 3D scene state and camera frames using Frame.getCameraTextureName — sceneview/sceneview1 reaction
- Apr 8, 2022__Pyx_KwValues_FASTCALL: avoid triggering UB by adding non-zero to NULL (caught by UBSAN nullptr-with-nonzero-offset) — cython/cython1 reaction · 2 comments
- Oct 5, 2021RFC: Renderer Upgrade Project — vircadia/vircadia-native-core1 reaction · 25 comments
- Dec 2, 2020[New Port Request] filament — microsoft/vcpkg1 reaction · 1 comment
- Aug 26, 2020test for triangle winding / mirroring via negative determinant — KhronosGroupArchives/glTF-Sample-Models1 reaction · 3 comments
- Oct 31, 2019Implement physically based rendering (PBR) — OpenXRay/xray-161 reaction · 1 comment
- Mar 20, 2019Feature request: Human friendly Camera API for SceneView — google-ar/sceneform-android-sdk1 reaction · 2 comments
- Feb 18, 2019Add Khronos glTF sample models to fidelity test suite — google/model-viewer1 reaction · 3 comments
- Oct 15, 2018Someone should try making this run on Apple — andrewrk/zig-vulkan-triangle1 reaction · 3 comments
- Oct 23, 2026build(deps): bump the maven group across 1 directory with 20 updates — peo1108/Cam-Kernel-SU0 reactions · 1 comment
- Oct 17, 2026build(deps): bump com.google.android.filament:filament-android from 1.77.0 to 1.77.3 — daanbouwman19/flight-planner-android0 reactions
- Oct 3, 2026build(deps): bump com.google.android.filament:filament-android from 1.77.0 to 1.77.1 — daanbouwman19/flight-planner-android0 reactions · 1 comment
- Sep 28, 2026Bump com.google.android.filament:filament-android from 1.66.0 to 1.77.1 — yossfu/Ephora-Viewer0 reactions
- Sep 28, 2026Bump com.google.android.filament:filament-utils-android from 1.66.0 to 1.77.1 — yossfu/Ephora-Viewer0 reactions · 1 comment
- Sep 26, 2026build(deps): bump com.google.android.filament:filament-android from 1.76.1 to 1.77.0 — daanbouwman19/flight-planner-android0 reactions
- Sep 19, 2026build(deps): bump com.google.android.filament:filament-android from 1.75.1 to 1.76.1 — daanbouwman19/flight-planner-android0 reactions
- Sep 19, 2026Adds OSS-Fuzz project for Google Filament (https://github.com/google/filament). — google/oss-fuzz0 reactions · 2 comments
- Aug 29, 2026build(deps): bump filament from 1.75.0 to 1.75.1 — daanbouwman19/flight-planner-android0 reactions
- Aug 29, 2026Bump the dependencies group with 3 updates — Olsc/Android_ORB-SLAM2s0 reactions · 1 comment
- Aug 22, 2026chore(deps): bump filament from 1.71.5 to 1.75.0 — tianshantingyun/smart-mistake-book0 reactions
- Jun 13, 2026Add filament project — google/oss-fuzz0 reactions · 1 comment
- Mar 16, 2026deps(deps): bump filament_version from 1.68.2 to 1.70.0 — jtakumi/VtuberCamera0 reactions · 1 comment
- Dec 17, 2024Support cuda 12.2 — Open3DV/Open3D0 reactions
- Oct 7, 2024chore(deps): bump filament from `3ca9b9c` to `e9aeb93` — margelo/react-native-filament0 reactions
On Bluesky · 3
- Dec 12, 2024Android XR was unveiled today! You can download the preview SDK today and start using the Compose and Material Design APIs. I'm also… — @romainguy.dev131 likes and reposts · 2 replies
- Dec 3, 2025OpenGL at the moment; via filament (github.com/google/filam...) — @xenoprimate.bsky.social2 likes and reposts · 1 reply
- Aug 21, 2025I didn't write/work on the app, but I'm one of the authors of the 3D engine used by the app (github.com/google/filam...). I would have… — @romainguy.dev1 likes and repost
On Hacker News · 2
- Aug 4, 2018Physically Based Rendering Engine for Android, Windows, Linux and MacOS3 points
- Aug 5, 2018Google/filament: Filament is a physically based rendering engine1 point
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms.txtllms.txt
- code-reviewSkill
- cpp-header-inclusionSkill
- cpp-static-thread-safetySkill
- filament-android-developmentSkill
- filament-build-cleanSkill
- filament-desktop-testingSkill
- header-self-containmentSkill
- preprocessor-guard-hygieneSkill
- verification-protocolsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
When making changes to public Filament C++ APIs, AI agents must ensure the changes are mirrored in the Java and JavaScript/TypeScript …
- Distinctive: line 36
All JNI JNI-exported functions use automatic symbol resolution (dynamic mapping), meaning they are mapped by signature rather than a static …
- Very specific: line 43
API Consistency: Keep method visibility public (unless the API is strictly internal to the Java package).
- Very specific: line 44
Getter/Setter Completeness: If you add a Setter (e.g., setFoo), always add the corresponding Getter (e.g., isFoo or getFoo).
- Very specific: line 66
Always update filament.d.ts to match any changes.
- Very specific: line 68
If you modify or add fields to an options struct (like BloomOptions), make sure to:
- Very specific: line 70
Update the TypeScript interface in filament.d.ts to include the new properties.
- Very specific: line 71
Check if extensions.js contains a prototype-overrides wrapper for merging the options (e.g., Filament.View.prototype.setBloomOptions).
- Distinctive: line 77
Before concluding a task:
- Distinctive: line 79
Verify that type bindings and return types match up.
- Very specific: line 80
Verify that TS definitions in filament.d.ts are 100% synchronized.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cross-Platform Language Bindings Synchronization
When making changes to public Filament C++ APIs, AI agents must ensure the changes are mirrored in the Java and JavaScript/TypeScript binding layers.
1. Trigger Conditions
You must check and update the language bindings if your changes touch any public headers under filament/include/filament/, specifically:
- New/Modified/Deleted Methods on core classes (e.g.,
View,Engine,Camera,LightManager,RenderableManager). - Options Structs (e.g.,
AmbientOcclusionOptions,BloomOptions,FogOptions).[!IMPORTANT] If you modify options structs defined in
filament/include/filament/Options.h:- Run
apigento regenerateView.javaandView.cpp(which host the Java POJO options structs and JNI bridges):python3 tools/apigen/generate_android.py -j - Run
beamsplitterto update JavaScript/TypeScript bindings and C++ JSON settings serialization:cd tools/beamsplitter && go run .
- Run
- Enums & Constants (e.g.,
BlendMode,QualityLevel,AntiAliasingunderfilament/include/filament/or nested inside classes).
2. Java & Android JNI Synchronization
All JNI JNI-exported functions use automatic symbol resolution (dynamic mapping), meaning they are mapped by signature rather than a static registration table.
File Mappings
- Java Class:
android/filament-android/src/main/java/com/google/android/filament/<ClassName>.java - JNI C++ Wrapper:
android/filament-android/src/main/cpp/<ClassName>.cpp
Guidelines
- API Consistency: Keep method visibility
public(unless the API is strictly internal to the Java package). Follow Java naming conventions (camelCase). - Getter/Setter Completeness: If you add a Setter (e.g.,
setFoo), always add the corresponding Getter (e.g.,isFooorgetFoo). - JNI Signature:
- Native declarations in Java must be
private static native. - The corresponding C++ function in JNI must be decorated with
extern "C" JNIEXPORT <ReturnType> JNICALL Java_com_google_android_filament_<ClassName>_<NativeMethodName>. - Return values from native C++ booleans should be cast to
jbooleanusing(jboolean)orstatic_cast<jboolean>().
- Native declarations in Java must be
3. JavaScript & TypeScript Synchronization
Filament uses Emscripten's Embind to export C++ APIs to JS.
File Mappings
- Embind Source:
web/filament-js/jsbindings.cpp - Enums Embind Source:
web/filament-js/jsenums.cpp - TypeScript Definition:
web/filament-js/filament.d.ts - JS Extension Wrappers:
web/filament-js/extensions.js
Guidelines
- Embind Registration:
- Register member functions in
jsbindings.cppwithin the correspondingclass_<ClassName>("<JSClassName>")block using.function("methodName", &ClassName::methodName).
- Register member functions in
- TypeScript Declarations:
- Always update
filament.d.tsto match any changes. Every bound C++ method should have a corresponding declaration insideexport class <ClassName>to avoid IDE type errors.
- Always update
- Complex Option Structs:
- If you modify or add fields to an options struct (like
BloomOptions), make sure to:- Register the new fields in
jsbindings.cppusing.field("fieldName", &ClassName::Options::fieldName). - Update the TypeScript interface in
filament.d.tsto include the new properties. - Check if
extensions.jscontains a prototype-overrides wrapper for merging the options (e.g.,Filament.View.prototype.setBloomOptions). Update the default options object if needed.
- Register the new fields in
- If you modify or add fields to an options struct (like
4. Verification Check
Before concluding a task:
- Double-check JNI signature signatures against the Java class.
- Verify that type bindings and return types match up.
- Verify that TS definitions in
filament.d.tsare 100% synchronized.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

