# Util

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/helper/Util.kt+class:androidx.webgpu.helper.Util) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
public static class Util
```

<br />

*** ** * ** ***

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/helper/Util` | `https://developer.android.com/reference/androidx/webgpu/helper/Util#INSTANCE()` |

| ### Public methods |
|---|---|
| `final external long` | `https://developer.android.com/reference/androidx/webgpu/helper/Util#windowFromSurface(android.view.Surface)(https://developer.android.com/reference/android/view/Surface.html surface)` |

## Public fields

### INSTANCE

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public static @NonNull Util INSTANCE
```

## Public methods

### windowFromSurface

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
public final external long windowFromSurface(Surface surface)
```