# GPUTexelCopyTextureInfo

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

*** ** * ** ***


```
public final class GPUTexelCopyTextureInfo
```

<br />

*** ** * ** ***

Describes a texture used in a texel copy operation.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo.Builder` Builder for `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#GPUTexelCopyTextureInfo(androidx.webgpu.GPUTexture,kotlin.Int,androidx.webgpu.GPUOrigin3D,kotlin.Int)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUTexture texture, int mipLevel, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUOrigin3D origin, int aspect )` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#getAspect()()` The texture aspect to use. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#getMipLevel()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUOrigin3D` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#getOrigin()()` The origin of the copy region in the texture. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUTexture` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#getTexture()()` The texture object. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#setAspect(kotlin.Int)(int value)` The texture aspect to use. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#setMipLevel(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#setOrigin(androidx.webgpu.GPUOrigin3D)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUOrigin3D value)` The origin of the copy region in the texture. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyTextureInfo#setTexture(androidx.webgpu.GPUTexture)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/webgpu/GPUTexture value)` The texture object. |

## Public constructors

### GPUTexelCopyTextureInfo

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

```
public GPUTexelCopyTextureInfo(
    @NonNull GPUTexture texture,
    int mipLevel,
    @NonNull GPUOrigin3D origin,
    int aspect
)
```

## Public methods

### getAspect

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

```
public final int getAspect()
```

The texture aspect to use. Defaults to @see `https://developer.android.com/reference/androidx/webgpu/TextureAspect#All()`.

### getMipLevel

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

```
public final int getMipLevel()
```

### getOrigin

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

```
public final @NonNull GPUOrigin3D getOrigin()
```

The origin of the copy region in the texture.

### getTexture

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

```
public final @NonNull GPUTexture getTexture()
```

The texture object.

### setAspect

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

```
public final void setAspect(int value)
```

The texture aspect to use. Defaults to @see `https://developer.android.com/reference/androidx/webgpu/TextureAspect#All()`.

### setMipLevel

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

```
public final void setMipLevel(int value)
```

### setOrigin

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

```
public final void setOrigin(@NonNull GPUOrigin3D value)
```

The origin of the copy region in the texture.

### setTexture

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

```
public final void setTexture(@NonNull GPUTexture value)
```

The texture object.