Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RainerXE/jgpu

 
 

Repository files navigation

Jgpu

A Cross Platform Graphics API For Java based on WebGPU and WebGPU Native

Brached from Kgpu

----- orignal text more to come

Warning: Because WebGPU is under active development, jgpu is very unstable! Once the specification is more finalized, this will not be an issue.

Rewrite: Currently the project's native backend is being rewritten to support the JVM's new FFI API (Project Panama). To access the old version, see the jnr branch

Requirements:

  • JDK 17+

Supported Platforms:

  • Windows 10
  • MacOS
  • Linux
  • Chrome Canary
  • Firefox Nightly

Links

Kgpu Book

Documentation

Live Example

Modules

kgpu is split into multiple modules:

  • kgpu: The core of this library (Kotlin bindings to WebGPU)
  • kcgmath: A cross platform graphics library for Kotlin based on the Rust crate cgmath
  • kshader: A library to help compile GLSL to SPIR-V

More Info

Images

Earth Example

Examples

To run the examples on Desktop:

gradlew runTriangleExample
gradlew runCubeExample
gradlew runTextureExample
gradlew runEarthExample

To run the examples on the Web:

gradlew buildWeb startWebServer

Then navigate to http://localhost:8080/index.html

Getting Started

To get started, see the Getting Started Page in the Kgpu book

About

A Cross Platform Graphics API For Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 83.8%
  • Kotlin 16.2%