Modules
kgpu
The core of kgpu. It provides the following APIs:
-
WebGPU Bindings
- JVM/Desktop: Native Bindings to wgpu
- JS/Web: Javascript Bindings
-
Window API
- JVM/Desktop: GLFW Bindings via LWJGL
- JS/Web: Canvas API via Web Browser
-
Image Loading API:
- JVM/Desktop: AWT Image Loading
- JS/Web: Off-screen Canvas Image Loading
kcgmath
Kotlin Computer Graphics Math Library
A cross platform graphics library for Kotlin based on the Rust crate cgmath
Note: This library is meant to be used as a basic computer graphics library for WebGPU. If you are using OpenGL or want something more complex, you may want to consider one of the following:
kshader
A library to help compile GLSL to SPIR-V
On the JVM/Desktop it uses Shaderc via LWJGL.
For JS/Web it uses the glslang library.