# SurfaceEntity.SuperSampling

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

*** ** * ** ***


```
public final class SurfaceEntity.SuperSampling
```

<br />

*** ** * ** ***

Specifies whether super sampling should be enabled for this surface. Super sampling can improve text clarity at a performance cost.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.SuperSampling` | `https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.SuperSampling#NONE()` Super sampling is disabled. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.SuperSampling` | `https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.SuperSampling#PENTAGON()` Super sampling is enabled with a default sampling pattern. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/SurfaceEntity.SuperSampling#toString()()` |

## Public fields

### NONE

```
public static final @NonNull SurfaceEntity.SuperSampling NONE
```

Super sampling is disabled.

### PENTAGON

```
public static final @NonNull SurfaceEntity.SuperSampling PENTAGON
```

Super sampling is enabled with a default sampling pattern. This is the value that is set if SuperSampling is not specified when the Entity is created.

## Public methods

### toString

```
public @NonNull String toString()
```