Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

kgpu/wgpu-java

Repository files navigation

Wgpu-Java

CI

NOTE: THIS IS THE ARCHIVED VERSION

NEW VERSION: kgpu/kgpu

Java bindings for Wgpu based on Wgpu-native.

Requirements:
  • Rust
  • Java JDK 11+

Boid Example Cube Example Earth Example

Documentation

Documentation/Book: Link

Javadocs: Link

How to run:

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

Supported Platforms

Windows 7/10: Vulkan, DX12, DX11

MacOS: Metal (See Issue #4)

Linux: Vulkan

Contributing

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