About this project
FragmentColor is a universal GPU programming library designed to bridge the gap between ease of use and power in cross-platform graphics development. It provides a unified API that encourages simple shader composition, allowing developers to use WGSL or GLSL as the source of truth for visual consistency while avoiding the verbosity typically associated with modern GPU APIs.
The library supports bindings for multiple languages, including Rust, JavaScript (via WASM), Python, Swift (iOS/macOS), and Kotlin (Android). It targets native graphics APIs on each platform, such as Vulkan, Metal, DirectX, OpenGL, WebGL, and WebGPU. Platform support aligns with upstream wgpu, offering first-class support for key APIs on major operating systems and web environments.
Key features include automatic uniform binding and updating, support for single-shader rendering, and the ability to combine multiple shaders into render passes. Developers can build arbitrary multi-pass graphs by declaring dependencies between passes, enabling complex rendering workflows like blur effects or GUI integration. The library also supports animation by updating uniforms in loops.
FragmentColor provides extensive documentation, API references, and examples for each supported language. It includes tools for building, testing, linting, and running healthchecks across platforms. The documentation site is generated from source files, ensuring that code examples are up-to-date and consistent with the library's behavior.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.