# SurfaceGetCurrentTextureStatus

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

*** ** * ** ***


```
public final class SurfaceGetCurrentTextureStatus
```

<br />

*** ** * ** ***

Status codes for retrieving the current texture from a surface.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#Error() = 6` A deterministic error occurred, such as the surface not being configured. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#Lost() = 5` The surface has been lost and must be recreated. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#Outdated() = 4` The surface configuration is outdated and must be reconfigured. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#SuccessOptimal() = 1` The texture was acquired successfully and is optimal for presentation. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#SuccessSuboptimal() = 2` The texture was acquired successfully but is suboptimal for presentation; reconfiguration may be needed. |
| `static final int` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#Timeout() = 3` The operation timed out while acquiring the texture. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/webgpu/SurfaceGetCurrentTextureStatus#toString(kotlin.Int)(int value)` |

## Constants

### Error

```
public static final int Error = 6
```

A deterministic error occurred, such as the surface not being configured.

### Lost

```
public static final int Lost = 5
```

The surface has been lost and must be recreated.

### Outdated

```
public static final int Outdated = 4
```

The surface configuration is outdated and must be reconfigured.

### SuccessOptimal

```
public static final int SuccessOptimal = 1
```

The texture was acquired successfully and is optimal for presentation.

### SuccessSuboptimal

```
public static final int SuccessSuboptimal = 2
```

The texture was acquired successfully but is suboptimal for presentation; reconfiguration may be needed.

### Timeout

```
public static final int Timeout = 3
```

The operation timed out while acquiring the texture.

## Public methods

### toString

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

```
public static final @NonNull String toString(int value)
```