Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A complete Android app template/example that uses androidx webgpu library

Notifications You must be signed in to change notification settings

ShashlikMap/webgpu-kt-template

Repository files navigation

webgpu-kt-template

A complete Android app example/template that uses androidx.webgpu library.

The repository serves as a starting point for Android developers who want to explore using WebGPU for high-performance graphics and computation within a familiar Kotlin/Android environment. WebGPU is designed to be the modern successor to older APIs like OpenGL ES.

This example uses the latest 1.0.0-alpha04 version. It renders a simple cube, a camera can be rotated around using touch gesture. It also demostrates how to work with:

  • WebGPU configuration + integration with Compose UI
  • Matrices calculation
  • Creating GPU buffers(vertex/index), both for uniform and vertices purposes
  • Simple diffuse lighting
  • A few tweaks around androidx.webgpu
  • Enabling multisampling(MSAA4x)
Screenshot_20260119_223639

I recommend to install a couple plugins for Android Studio :

P.S. Thanks to the article for the inspiration.

P.S.S. Compose Multiplatform + Rust WGPU template can be found here

About

A complete Android app template/example that uses androidx webgpu library

Topics

Resources

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /