# GPUSurfaceTexture

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

*** ** * ** ***


```
class GPUSurfaceTexture
```

<br />

*** ** * ** ***

Contains a texture to render to for a surface, along with status information.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceTexture#GPUSurfaceTexture(androidx.webgpu.GPUTexture,kotlin.Int)(texture: https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexture, status: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceTexture#status()` The status of the texture acquisition. |
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexture` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUSurfaceTexture#texture()` The texture for the current frame. |

## Public constructors

### GPUSurfaceTexture

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

```
GPUSurfaceTexture(texture: GPUTexture, status: Int)
```

## Public properties

### status

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

```
var status: Int
```

The status of the texture acquisition.

Value is one of the following:

- `1`
- `2`
- `3`
- `4`
- `5`
- `6`

<br />

### texture

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

```
var texture: GPUTexture
```

The texture for the current frame.