lancelet / wgpu-hs Goto Github PK
View Code? Open in Web Editor NEWHaskell bindings to WGPU Native
License: BSD 3-Clause "New" or "Revised" License
Haskell bindings to WGPU Native
License: BSD 3-Clause "New" or "Revised" License
Before any examples or tests can run in CI that involve the whole library, the Rust library must be included in the CI build.
Seems to stall out on sdl2
library.
It doesn't have examples any more.
Currently, surfaces can only be created on macOS.
Look here for an example: https://github.com/gfx-rs/wgpu-native/blob/master/examples/triangle/main.c#L92-L108
The API bindings will also have to be wired through properly on Windows.
... instead of ContT.
Now supports Windows too.
wgpu-raw-hs-codegen
.wgpu-native
.Currently, surfaces can only be created on MacOS.
Look here for an example (X11): https://github.com/gfx-rs/wgpu-native/blob/master/examples/triangle/main.c#L72-L87
The current binding has many shortcomings; the main one being the alloc
/poke
dance that is required to create chains of structures.
Look at the Rust API for WGPU for inspiration, and create a nicer API.
Names of functions are wrong. Functions are not linked.
In the triangle example, the background color doesn't seem to clear properly.
Long-term, I'm probably not going to investigate this too deeply until work on a higher-level binding has progressed to the point where it can be replicated there.
On macOS, the example still runs, but on Windows, it crashes on resize!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.