NEW VERSION: kgpu/kgpu
Java bindings for Wgpu based on Wgpu-native.
- Rust
- Java JDK 11+
Documentation/Book: Link
Javadocs: Link
Gradle will automatically build the required dll/.so/.dylib when wgpu-java/natives is compiled. To run the default example, execute the following command:
git clone https://github.com/DevOrc/wgpu-java
gradlew runExample
To run a specific example:
gradlew runExample -Pexample={EXAMPLE_NAME_HERE}
gradlew runExample -Pexample=TriangleExample
gradlew runExample -Pexample=ComputeExample
Example Name | Command |
---|---|
Triangle | gradlew runExample -Pexample=TriangleExample |
Compute | gradlew runExample -Pexample=ComputeExample |
Cube | gradlew runExample -Pexample=CubeExample |
Vertex | gradlew runExample -Pexample=VertexExample |
Hex World | gradlew runExample -Pexample=HexWorldExample |
Window Events | gradlew runExample -Pexample=WindowEventExample |
Boid Simulation | gradlew runExample -Pexample=BoidExample |
Windows 7/10: Vulkan, DX12, DX11
MacOS: Metal (See Issue #4)
Linux: Vulkan
I only have a windows/linux machine, so the best way to contribute is to write and test the platform specific code (i.e. window handling for rendering pipelines). For more details, see issue #4