webgpu
| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |
|---|---|---|---|---|
| April 22, 2026 | - | - | - | 1.0.0-alpha05 |
Declaring dependencies
To add a dependency on Webgpu, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.
Add the dependencies for the artifacts you need in the build.gradle file for
your app or module:
Groovy
dependencies { implementation "androidx.webgpu:webgpu:1.0.0-alpha05" }
Kotlin
dependencies { implementation("androidx.webgpu:webgpu:1.0.0-alpha05") }
For more information about dependencies, see Add build dependencies.
Feedback
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
There are no release notes for this artifact.
Webgpu Version 1.0
Version 1.0.0-alpha05
April 22, 2026
androidx.webgpu:webgpu:1.0.0-alpha05 is released. Version 1.0.0-alpha05 contains these commits.
New Features & Constants
Compatibility Mode Limits
- Added
GPUCompatibilityModeLimits(and its correspondingBuilder) to define limits specifically for compatibility mode. - Includes specific limits such as
maxStorageBuffersInVertexStageandmaxStorageTexturesInFragmentStage. - This object has been integrated as an optional property within
GPULimits.
- Added
Texture Binding View Dimensions
- Added
GPUTextureBindingViewDimensionto provide more granular control over texture view bindings. - These can now be specified within
GPUTextureDescriptor.
- Added
New Constants and Supported Features
- TextureUsage: Added
TransientAttachment. - WGSLLanguageFeatureName:
- Added
SubgroupUniformity. - Added
TextureFormatsTier1.
- Added
- SType: Added the following:
ExternalTextureBindingLayoutExternalTextureBindingEntryCompatibilityModeLimitsTextureBindingViewDimension
- TextureUsage: Added
API Changes
- IntDef Annotation Refactoring: The structural definition of all enums (such as
AdapterType,TextureFormat,BufferUsage,LoadOp, etc.) are refactored. They have transitioned from public annotation classes to private constructor classes containing a nested.Typeannotation class. Consequently, parameter annotations across the library have been updated from@FormatNameto@FormatName.Type(e.g., changing@TextureFormatto@TextureFormat.Type). - Texture View Descriptor Updates:
GPUTextureViewDescriptornow accepts ausageparameter (@TextureUsage.Type), allowing specific usages to be defined directly on the texture view.
Important Note: The documentation provided in this library release has been generated utilizing Google Gemini and may contain errors.
Version 1.0.0-alpha04
February 11, 2026
androidx.webgpu:webgpu:1.0.0-alpha04 is released. Version 1.0.0-alpha04 contains these commits.
New Features
- Builder Pattern: Introduced static Builder classes for all descriptor and state objects (e.g.,
GPUDeviceDescriptor.Builder,GPURenderPipelineDescriptor.Builder) to simplify object construction and improve Java interoperability. - Expanded Test Suite: Added more tests, including for the new color conversion extensions, to improve library stability.
- Documentation: Substantially improved KDoc and Javadoc throughout the library, providing clearer definitions for API types and flags.
API Changes
- Constructor Updates: Public constructors for descriptor classes have been updated to support the Builder pattern; many overloaded constructors were removed to streamline the API.
Dawn Update: Updated the internal Dawn source commit to dc741dd to stay synchronized with the upstream WebGPU implementation.
Important Note: The documentation provided in this library release has been generated utilizing Google Gemini and may contain errors.
Bug Fixes
- Fixed incorrect default value for mask in
GPUMultisampleState(I41e86f0b, b/379441904)
Version 1.0.0-alpha03
January 14, 2026
androidx.webgpu:webgpu:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
New Features
- Expanded Test Suite: Added more comprehensive tests to improve library stability.
- Color Conversion Extension: Added extension functions to easily convert Android Color values into
GPUColor. - Unified Callback Interface: A new
GPURequestCallbackinterface has been added to handle asynchronous operations more consistently across the library. - Metadata: The library AAR now includes a
dawn_build_metadata.jsonfile in its assets. This file contains the specific Dawn Git SHA-1 commit used for the build.
API Changes
- Callback Consolidation: Several specific callback interfaces have been removed in favor of the new generic
GPURequestCallback.
Version 1.0.0-alpha02
December 17, 2025
androidx.webgpu:webgpu:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
New Features
- Expanded Test Suite: Added more comprehensive tests to improve library stability.
- Minimum SDK Update: The library is now applicable for
minSdk24 and higher.
API Changes
- Structure Renaming: All structures are now prefixed with "GPU" for consistency with existing objects. For example,
BindGroupDescriptorhas been renamed toGPUBindGroupDescriptor. - Global Method Wrapping: Global functions have been moved into a public GPU object for better clarity and organization within the Kotlin API.
- Exception Handling Refactor: Internalized the
getExceptionfunction by moving it into theWebGpuRuntimeExceptioncompanion object. This prevents developers from accessing the internal exception creation logic while maintaining a clean public API surface.
Version 1.0.0-alpha01
December 03, 2025
androidx.webgpu:webgpu:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
New Features
- This is the initial alpha version of the WebGPU for Android Applications library. It is intended at this stage for developer preview. The API is expected to be finalized over the next few releases.