Giter VIP home page Giter VIP logo

Kgpu

A Cross Platform Graphics API For Kotlin JVM/JS based on WebGPU and WebGPU Native

Warning: Because WebGPU is under active development, kgpu 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

kgpu's Projects

kgpu icon kgpu

A Cross Platform Graphics API For Kotlin JVM and Kotlin JS

wgpu-java icon wgpu-java

Native WebGPU bindings for java, based on wgpu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.