Crates.io | filament-bindings |
lib.rs | filament-bindings |
version | 0.2.2 |
source | src |
created_at | 2022-02-15 05:31:16.891577 |
updated_at | 2022-04-10 13:50:44.469201 |
description | This package provides build scripts and prebuilt binaries for filament on Windows, macOS, Linux, and the unsafe binding interface automatically generated by rust-bindgen. |
homepage | |
repository | https://github.com/EYHN/rust-filament/tree/main/filament-bindings |
max_upload_size | |
id | 532578 |
size | 17,855,381 |
This package provides a set of unsafe binding api, build scripts and prebuilt binaries for Google/filament on Windows, macOS, Linux.
All api's of this package are marked as unsafe, because the c++ objects of filament
do not use reference counting to track resource usage, this library has no way of knowing when to release objects, you have to release resources manually.
Because filament builds are very slow and have build environment requirements. We provide prebuilt binaries for common platforms and features.
When a new version is released, github action automatically runs pre-build tasks, and all prebuilt binaries are saved in filament-binaries/releases.
The filament-binding
build script will try to download the prebuilt binaries from github first, and skip the full source build.
We currently provide pre-built binary packages for Windows
, Linux
, macOS
, and enable OpenGL
, Vulkan
backend for all platforms and Metal
backend for macOS. For other platforms such as Android
, iOS
and WASM
support is planned but not yet available.
Render a triangle and save the image to a ppm file
Use filament with winit
.
run cargo run --example winit