# androidx.webgpu

*** ** * ** ***

## Interfaces

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/DeviceLostCallback` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURequestCallback` | A generic callback interface for asynchronous GPU requests. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/UncapturedErrorCallback` |   |

## Classes

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/AdapterType` | Describes the physical characteristics of a graphics adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/AddressMode` | Defines how texture coordinates outside the 0, 1 range are handled. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/BackendType` | Specifies the underlying graphics API used by the WebGPU implementation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendFactor` | Defines the factors used in blend operations. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/BlendOperation` | Defines the operation to perform when blending color values. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferBindingType` | Specifies the type of a buffer binding in a bind group layout. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferMapState` | Describes the current mapping state of a buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/BufferUsage` | Defines the valid usages for a buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CallbackMode` | Controls how and when asynchronous operation callbacks are invoked. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ColorSpacePrimariesDawn` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ColorSpaceTransferDawn` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ColorSpaceYCbCrMatrixDawn` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ColorSpaceYCbCrRangeDawn` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ColorWriteMask` | A bitmask that controls which color channels are written to a render target. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CompareFunction` | Defines the comparison function used for depth and stencil tests. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CompilationInfoRequestStatus` | Indicates the status of a shader compilation info request. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CompilationMessageType` | Specifies the severity of a shader compilation message. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ComponentSwizzle` | Defines how component values are remapped when sampling a texture. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CompositeAlphaMode` | Defines how the alpha channel of a surface's texture is handled during compositing. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CreatePipelineAsyncStatus` | Indicates the status of an asynchronous pipeline creation request. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CullMode` | Defines which primitive faces are culled during rasterization. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/DeviceLostReason` | Specifies the reason why a device was lost. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ErrorFilter` | Defines the types of errors to be captured in an error scope. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ErrorType` | Specifies the type of a WebGPU error. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ExternalTextureRotation` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/FeatureLevel` | Specifies a feature level for adapter requests. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/FeatureName` | An enumeration of optional features that a device may support. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/FilterMode` | Defines the texture filtering mode for magnification and minification. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/FrontFace` | Defines which vertex winding order corresponds to the front face of a primitive. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapter` | Represents a physical graphics adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo` | Provides detailed information about a graphics adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUAdapterInfo`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroup` | A collection of resources to be bound to a pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupDescriptor` | Describes a bind group, which is a collection of resources to be bound to a pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry` | Describes a single resource binding within a bind group. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupEntry`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayout` | The layout of a bind group, defining the types of its resources. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayoutDescriptor` | Describes the layout of a bind group, specifying the types of resources it contains. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayoutDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayoutDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayoutEntry` | Describes a single binding within a bind group layout. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayoutEntry.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBindGroupLayoutEntry`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent` | Defines the blending behavior for a single color component (color or alpha). |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendComponent`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState` | Defines the blending configuration for a color attachment. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBlendState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBuffer` | A block of memory accessible by the GPU. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout` | Describes the layout of a buffer binding. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferBindingLayout`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor` | Describes a buffer to be created. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUBufferDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColor` | Represents an RGBA color value. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorSpaceDawn` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorSpaceDawn.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorSpaceDawn`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorTargetState` | Describes the state of a single color target in a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorTargetState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUColorTargetState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandBuffer` | A recorded sequence of GPU commands. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandBufferDescriptor` | Describes a command buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandBufferDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandBufferDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandEncoder` | An object used to record GPU commands. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandEncoderDescriptor` | Describes a command encoder. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandEncoderDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCommandEncoderDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompatibilityModeLimits`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationInfo` | Contains information about a shader compilation, including messages. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationInfo.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationInfo`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage` | Describes a single message generated during shader compilation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePassDescriptor` | Describes a compute pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePassDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePassDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePassEncoder` | An object used to record commands for a compute pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePipeline` | A pipeline for compute operations. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePipelineDescriptor` | Describes a compute pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePipelineDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputePipelineDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputeState` | Describes the compute shader stage of a pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputeState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUComputeState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUConstantEntry` | Defines a key-value pair for a pipeline-overridable constant. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDawnTogglesDescriptor` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDawnTogglesDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDawnTogglesDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState` | Describes the depth and stencil state for a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDepthStencilState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDevice` | A logical graphics device. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDeviceDescriptor` | Describes a device to be created. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDeviceDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDeviceDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExtent2D` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExtent3D` | Defines a three-dimensional extent (width, height, depth/layers). |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExtent3D.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExtent3D`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTexture` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureBindingEntry` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureBindingLayout` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUExternalTextureDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUFragmentState` | Describes the fragment shader stage of a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUFragmentState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUFragmentState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUHardwareBufferExternalTexture` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUHardwareBufferTexture` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUHardwareBufferWrapper` | Base abstract wrapper for imported hardware buffers. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstance` | A top-level object representing a WebGPU instance. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor` | Describes an instance to be created. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceLimits` | Defines limits for an instance. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceLimits.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUInstanceLimits`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPULimits` | Defines the resource limits for a device. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPULimits.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPULimits`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUMultisampleState` | Describes the multisampling state for a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUMultisampleState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUMultisampleState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin2D` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin2D.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin2D`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin3D` | Defines a three-dimensional origin point (x, y, z). |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin3D.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUOrigin3D`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPassTimestampWrites` | Describes the timestamp queries to be written during a pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPassTimestampWrites.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPassTimestampWrites`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPipelineLayout` | The layout of a pipeline, defining the bind groups it uses. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPipelineLayoutDescriptor` | Describes a pipeline layout. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPipelineLayoutDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPipelineLayoutDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState` | Describes the primitive assembly and rasterization state for a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySet` | A set of queries for occlusion or timestamp measurements. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySetDescriptor` | Describes a query set. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySetDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQuerySetDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQueue` | A queue for submitting command buffers to the GPU. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQueueDescriptor` | Describes a queue. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQueueDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUQueueDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundle` | A pre-recorded sequence of rendering commands. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleDescriptor` | Describes a render bundle. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleEncoder` | An object used to record commands for a render bundle. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleEncoderDescriptor` | Describes a render bundle encoder. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleEncoderDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderBundleEncoderDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment` | Describes a color attachment for a render pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassColorAttachment`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment` | Describes a depth-stencil attachment for a render pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDepthStencilAttachment`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor` | Describes a render pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassEncoder` | An object used to record commands for a render pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassMaxDrawCount` | An extension for specifying the maximum draw count in a render pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassMaxDrawCount.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPassMaxDrawCount`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPipeline` | A pipeline for rendering operations. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPipelineDescriptor` | Describes a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPipelineDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURenderPipelineDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURequestAdapterOptions` | Options for requesting a graphics adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURequestAdapterOptions.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURequestAdapterOptions`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPURequestAdapterWebXROptions` | Extension for WebXR interop options when requesting an adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSampler` | An object that controls how textures are sampled in a shader. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSamplerBindingLayout` | Describes the layout of a sampler binding. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSamplerBindingLayout.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSamplerBindingLayout`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSamplerDescriptor` | Describes a sampler. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSamplerDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSamplerDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModule` | A compiled shader module. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor` | Describes a shader module. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderModuleDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV` | Extension for providing SPIR-V shader source code. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceSPIRV`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUShaderSourceWGSL` | Extension for providing WGSL shader source code. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStencilFaceState` | Describes the stencil state for a single face of a primitive. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStencilFaceState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStencilFaceState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStorageTextureBindingLayout` | Describes the layout of a storage texture binding. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStorageTextureBindingLayout.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUStorageTextureBindingLayout`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedFeatures` | A list of supported optional features. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedFeatures.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedFeatures`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedInstanceFeatures` | A list of supported optional instance features. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedInstanceFeatures.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedInstanceFeatures`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedWGSLLanguageFeatures` | A list of supported optional WGSL language features. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedWGSLLanguageFeatures.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSupportedWGSLLanguageFeatures`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurface` | An object representing a platform-specific surface for rendering. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceCapabilities` | Describes the capabilities of a surface for a given adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceCapabilities.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceCapabilities`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceColorManagement` | Extension for configuring color space and tone mapping for a surface. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceConfiguration` | Describes the configuration for a surface. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceConfiguration.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceConfiguration`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceDescriptor` | Describes a surface to be created. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceSourceAndroidNativeWindow` | Extension for creating a surface from an Android ANativeWindow. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceTexture` | Contains a texture to render to for a surface, along with status information. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSyncFence` | A unified abstraction for fence synchronization in WebGPU |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferInfo` | Describes a buffer used in a texel copy operation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferInfo.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferInfo`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferLayout` | Describes the layout of texel data within a buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferLayout.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferLayout`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyTextureInfo` | Describes a texture used in a texel copy operation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyTextureInfo.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyTextureInfo`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexture` | A GPU texture object. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout` | Describes the layout of a texture binding. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingLayout`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingViewDimension` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingViewDimension.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureBindingViewDimension`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzle` | Defines the mapping of source texture components to the color channels of a texture view, allowing for reordering or forcing values. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzle.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzle`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzleDescriptor` | An extension chained to a texture view descriptor to define a custom component swizzle. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzleDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureComponentSwizzleDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureDescriptor` | Describes a texture to be created. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureView` | A view into a texture, defining a specific sub-resource or reinterpretation of the texture's data. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor` | Describes a texture view. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTextureViewDescriptor`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexAttribute` | Describes a single vertex attribute. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout` | Describes the layout of a single vertex buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexBufferLayout`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState` | Describes the vertex shader stage of a render pipeline. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState.Builder` | Builder for `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUVertexState`. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/IndexFormat` | Specifies the data type of an index buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/InstanceFeatureName` | An enumeration of optional features that an instance may support. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/LoadOp` | Defines the operation to perform on a render attachment at the beginning of a pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/MapAsyncStatus` | Indicates the status of an asynchronous buffer map operation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/MapMode` | Specifies the access mode for a buffer mapping. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/MipmapFilterMode` | Defines the filtering mode used between mipmap levels. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/OptionalBool` | Represents a boolean value that can also be undefined. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/PopErrorScopeStatus` | Indicates the status of a pop error scope operation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/PowerPreference` | Defines the power consumption preference when requesting an adapter. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/PredefinedColorSpace` | Defines standard color spaces for surfaces. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/PresentMode` | Defines the behavior of frame presentation for a surface. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/PrimitiveTopology` | Defines how vertices are interpreted to form geometric primitives. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/QueryType` | Specifies the type of a query set. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/QueueWorkDoneStatus` | Indicates the status of a queue work done callback. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestAdapterStatus` | Indicates the status of an adapter request. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestDeviceStatus` | Indicates the status of a device request. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/SType` | Identifies the type of a structure in an extensible structure chain. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/SamplerBindingType` | Specifies the type of a sampler binding in a bind group layout. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ShaderStage` | A bitmask that specifies the shader stages where a resource is accessible. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/Status` | A status code returned synchronously from an operation. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/StencilOperation` | Defines the operation to perform on the stencil buffer. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/StorageTextureAccess` | Defines the access mode for a storage texture binding. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/StoreOp` | Defines the operation to perform on a render attachment at the end of a pass. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/SurfaceGetCurrentTextureStatus` | Status codes for retrieving the current texture from a surface. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureAspect` | Specifies which aspect of a texture is being referenced. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureDimension` | Defines the dimensionality of a texture. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureFormat` | An enumeration of all supported texture formats. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureSampleType` | Specifies the data type of a sampled texture in a bind group layout. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureUsage` | Defines the valid usages for a texture. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/TextureViewDimension` | Defines the dimensionality of a texture view. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ToneMappingMode` | Defines the tone mapping mode for a surface. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/VertexFormat` | Specifies the data format of a vertex attribute. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/VertexStepMode` | Defines how frequently a vertex buffer is advanced. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/WGSLLanguageFeatureName` | An enumeration of optional WGSL language features. |

## Exceptions

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CompilationInfoRequestException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/CreatePipelineAsyncException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/DawnException` | Exception for errors originating from the Dawn WebGPU library that do not fit into more specific WebGPU error categories. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/DeviceLostException` | Exception thrown when a `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUDevice` is lost and can no longer be used. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/InternalException` | Exception for Internal type errors. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/MapAsyncException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/OutOfMemoryException` | Exception for OutOfMemory type errors. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/PopErrorScopeException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/QueueWorkDoneException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestAdapterException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/RequestDeviceException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/SurfaceGetCurrentTextureException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/UnknownException` | Exception for Unknown type errors. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ValidationException` | Exception for Validation type errors. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/WebGpuException` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/WebGpuRuntimeException` | Base class for exceptions that can happen at runtime. |

## Objects

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/Constants` |   |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPU` |   |

## Annotations

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/ExperimentalWebGpuApi` |   |

## Top-level functions summary

|---|---|
| `suspend T` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/webgpu/package-summary#awaitGPURequest(kotlin.Function1)(block: (callback: https://developer.android.com/reference/kotlin/androidx/webgpu/GPURequestCallback<T>) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` |

## Top-level functions

### awaitGPURequest

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/GPURequestCallback.kt+function:awaitGPURequest)

```
suspend fun <T : Any?> awaitGPURequest(block: (callback: GPURequestCallback<T>) -> Unit): T
```