# 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)

*** ** * ** ***


```
object Util
```

<br />

*** ** * ** ***

## Summary

| ### Public functions |
|---|---|
| `external https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/helper/Util#windowFromSurface(android.view.Surface)(surface: https://developer.android.com/reference/android/view/Surface.html?)` |

## Public functions

### windowFromSurface

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

```
external fun windowFromSurface(surface: Surface?): Long
```